如何期望量角器大于或等于

时间:2017-07-19 16:23:55

标签: protractor

var Total = Rows.count();
var NewTotal = NewRows.count();

 Promise.all([ Total , NewTotal ]).then(function(lengths) {
       expect(lengths[0]>= lengths[1]).toBeTruthy();
                                });

此测试失败Expected 16 to be greater than 16.不确定如何更改此值以比较大于或等于。

1 个答案:

答案 0 :(得分:1)

    var Total = Rows.count();
    var NewTotal = NewRows.count();

    Promise.all([Total, NewTotal ]).then(function(lengths) {
        expect(Total).not.to.be.lessThan(NewTotal);
    });