File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ import {
46
46
downloadScriptName ,
47
47
} from './utils' ;
48
48
49
+ const testif = ( condition : boolean ) : jest . It => ( condition ? it : it . skip ) ;
50
+
49
51
function integrationTests (
50
52
browserName : string ,
51
53
_HTTPPORT : number ,
@@ -842,6 +844,20 @@ function integrationTests(
842
844
reportZestStatementClose ( 3 ) ,
843
845
] ) ;
844
846
} ) ;
847
+
848
+ testif ( browserName === BROWSERNAME . FIREFOX ) (
849
+ 'Should open help from popup' ,
850
+ async ( ) => {
851
+ // Given / When
852
+ const wd = await driver . getWebDriver ( ) ;
853
+ await wd . get ( await driver . getPopupURL ( ) ) ;
854
+ await wd . findElement ( By . id ( 'help-btn' ) ) . click ( ) ;
855
+ await eventsProcessed ( ) ;
856
+ await wd . switchTo ( ) . window ( ( await wd . getAllWindowHandles ( ) ) [ 0 ] ) ;
857
+ // Then
858
+ expect ( await wd . getPageSource ( ) ) . toContain ( 'Summary' ) ;
859
+ }
860
+ ) ;
845
861
}
846
862
847
863
describe ( 'Chrome Integration Test' , ( ) => {
You can’t perform that action at this time.
0 commit comments