File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ VisibleAssertion.prototype.executeCommand = function(callback) {
30
30
} ;
31
31
32
32
VisibleAssertion . prototype . elementFound = function ( ) {
33
- this . passed = this . negate ? ! this . resultValue : this . resultValue ;
33
+ this . passed = this . negate ? this . resultValue === false : this . resultValue ;
34
34
this . expected = this . negate ? 'not visible' : 'visible' ;
35
35
this . actual = this . resultValue ? 'visible' : 'not visible' ;
36
36
Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ module.exports = {
157
157
} ,
158
158
159
159
'to not be visible with waitFor [FAILED]' : function ( done ) {
160
- this . client . api . globals . waitForConditionPollInterval = 10 ;
160
+ this . client . api . globals . waitForConditionPollInterval = 15 ;
161
161
162
- Nocks . elementFound ( ) . visible ( ) . visible ( ) . visible ( ) ;
162
+ Nocks . elementFound ( ) . visible ( ) . visible ( ) ;
163
163
164
164
var expect = this . client . api . expect . element ( '#weblogin' ) . to . not . be . visible . before ( 25 ) ;
165
165
this . client . once ( 'nightwatch:finished' , function ( results , errors ) {
166
166
assert . equal ( expect . assertion . waitForMs , 25 ) ;
167
- assert . equal ( expect . assertion . passed , false ) ;
168
167
assert . equal ( expect . assertion . message , 'Expected element <#weblogin> to not be visible in 25ms' ) ;
168
+ assert . equal ( expect . assertion . passed , false ) ;
169
169
done ( ) ;
170
170
} ) ;
171
171
You can’t perform that action at this time.
0 commit comments