@@ -673,6 +673,29 @@ function integrationTests(
673673 ] ) ;
674674 } ) ;
675675
676+ test ( 'Should not record interactions on hidden element' , async ( ) => {
677+ // Given / When
678+ await driver . toggleRecording ( ) ;
679+ const wd = await driver . getWebDriver ( ) ;
680+ await wd . get ( `http://localhost:${ _HTTPPORT } /webpages/hiddenElement.html` ) ;
681+ await eventsProcessed ( ) ;
682+ await wd . findElement ( By . id ( 'visibleButton' ) ) . click ( ) ;
683+ await eventsProcessed ( ) ;
684+ // Then
685+ expect ( actualData ) . toEqual ( [
686+ reportZestStatementComment ( ) ,
687+ reportZestStatementLaunch (
688+ 'http://localhost:1801/webpages/hiddenElement.html'
689+ ) ,
690+ reportZestStatementScrollTo ( 3 , 'visibleButton' ) ,
691+ reportZestStatementClick ( 4 , 'visibleButton' ) ,
692+ reportZestStatementScrollTo ( 5 , 'visibleCheckBox' ) ,
693+ reportZestStatementClick ( 6 , 'visibleCheckBox' ) ,
694+ reportZestStatementScrollTo ( 7 , 'visibleCheckBox' ) ,
695+ reportZestStatementSendKeys ( 8 , 'visibleCheckBox' , 'on' , 'id' ) ,
696+ ] ) ;
697+ } ) ;
698+
676699 test ( 'Should record set localStorage' , async ( ) => {
677700 // Given
678701 await enableZapEvents ( server , driver ) ;
0 commit comments