@@ -210,7 +210,7 @@ describe('ObjectStatus', () => {
210
210
</ ObjectStatus >
211
211
) ;
212
212
if ( stateObj . hiddenText ) {
213
- cy . findByText ( stateObj . hiddenText ) . should ( 'exist' ) . and ( 'not.be.visible ' ) ;
213
+ cy . findByText ( stateObj . hiddenText ) . should ( 'exist' ) . and ( 'have.css' , 'font-size' , '0px ') ;
214
214
}
215
215
if ( ! item . inverted ) {
216
216
cy . findByText ( 'Content' ) . should ( 'have.css' , 'color' , rgbValColorString ) ;
@@ -235,7 +235,7 @@ describe('ObjectStatus', () => {
235
235
cy . findByText ( 'Content' ) . click ( ) ;
236
236
cy . get ( '@clickSpy' ) . should ( 'not.be.called' ) ;
237
237
cy . findByRole ( 'button' ) . should ( 'not.exist' ) ;
238
- cy . findByText ( 'Object Status' ) . should ( 'exist' ) . and ( 'not.be.visible ' ) ;
238
+ cy . findByText ( 'Object Status' ) . should ( 'exist' ) . and ( 'have.css' , 'font-size' , '0px ') ;
239
239
240
240
cy . mount (
241
241
< ObjectStatus onClick = { click } interactive >
@@ -249,7 +249,7 @@ describe('ObjectStatus', () => {
249
249
cy . get ( '@clickSpy' ) . should ( 'have.been.calledTwice' ) ;
250
250
cy . findByText ( 'Content' ) . realPress ( 'Space' ) ;
251
251
cy . get ( '@clickSpy' ) . should ( 'have.been.calledThrice' ) ;
252
- cy . findByText ( 'Object Status Button' ) . should ( 'exist' ) . and ( 'not.be.visible ' ) ;
252
+ cy . findByText ( 'Object Status Button' ) . should ( 'exist' ) . and ( 'have.css' , 'font-size' , '0px ') ;
253
253
} ) ;
254
254
255
255
it ( 'emptyIndicator' , ( ) => {
@@ -267,7 +267,7 @@ describe('ObjectStatus', () => {
267
267
</ ObjectStatus >
268
268
) ;
269
269
cy . findByText ( VALUE_STATE_ERROR . defaultText ) . should ( 'not.exist' ) ;
270
- cy . findByText ( 'Custom Text' ) . should ( 'exist' ) . and ( 'not.be.visible ' ) ;
270
+ cy . findByText ( 'Custom Text' ) . should ( 'exist' ) . and ( 'have.css' , 'font-size' , '0px ') ;
271
271
} ) ;
272
272
273
273
it ( 'large' , ( ) => {
0 commit comments