@@ -210,7 +210,7 @@ describe('ObjectStatus', () => {
210210 </ ObjectStatus >
211211 ) ;
212212 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 ') ;
214214 }
215215 if ( ! item . inverted ) {
216216 cy . findByText ( 'Content' ) . should ( 'have.css' , 'color' , rgbValColorString ) ;
@@ -235,7 +235,7 @@ describe('ObjectStatus', () => {
235235 cy . findByText ( 'Content' ) . click ( ) ;
236236 cy . get ( '@clickSpy' ) . should ( 'not.be.called' ) ;
237237 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 ') ;
239239
240240 cy . mount (
241241 < ObjectStatus onClick = { click } interactive >
@@ -249,7 +249,7 @@ describe('ObjectStatus', () => {
249249 cy . get ( '@clickSpy' ) . should ( 'have.been.calledTwice' ) ;
250250 cy . findByText ( 'Content' ) . realPress ( 'Space' ) ;
251251 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 ') ;
253253 } ) ;
254254
255255 it ( 'emptyIndicator' , ( ) => {
@@ -267,7 +267,7 @@ describe('ObjectStatus', () => {
267267 </ ObjectStatus >
268268 ) ;
269269 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 ') ;
271271 } ) ;
272272
273273 it ( 'large' , ( ) => {
0 commit comments