Skip to content

Commit b0a07ea

Browse files
committed
Tweak measuring visibility in numeric display-if tests
1 parent b9be6d7 commit b0a07ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/js/test-fieldmanager.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
assert.ok( $( this ).is( ':visible' ), 'non display-if field is visible after changes (parent #' + $( this ).parent().attr( 'id' ) + ')' );
6161
});
6262

63-
assert.ok( $( '#di-789' ).is( ':visible' ), "show display-if value of '789'" );
64-
assert.ok( $( '#di-123' ).not( ':visible' ), "hide display-if value of '123'" );
65-
assert.ok( $( '#di-456' ).not( ':visible' ), "hide display-if value of '456'" );
63+
assert.ok( $( '#di-789:visible' ).length, "show display-if value of '789'" );
64+
assert.notOk( $( '#di-123:visible' ).length, "hide display-if value of '123'" );
65+
assert.notOk( $( '#di-456:visible' ).length, "hide display-if value of '456'" );
6666

6767
// The boolean and "wrong"/"right" checkboxs are unchecked by default.
6868
assert.notOk( $( '#di-when-boolean-checkbox-true:visible' ).length );

0 commit comments

Comments
 (0)