const subRoot = '/tests/sc-expandable-input/standard' ; it ( 'onValueChange is invoked only after blur' , ( ) => { cy . visit ( subRoot ) ; const SOME_TEXT = 'some text' ; cy . get ( '[data-test-tag="expandable-input"' ) . type ( SOME_TEXT ) ; cy . get ( '#input-value' ) . should ( $span => { expect ( $span ) . not . to . contain ( SOME_TEXT ) ; } ) ; cy . get ( 'body' ) . click ( ) ; cy . get ( '#input-value' ) . should ( $span => { expect ( $span ) . to . contain ( SOME_TEXT ) ; } ) ; } ) ;