File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
apps/remix-ide-e2e/src/commands Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ parameters:
55 type : boolean
66 default : false
77orbs :
8- browser-tools : circleci/browser-tools@1.4.4
8+ browser-tools : circleci/browser-tools@1.5.2
9910101111jobs :
@@ -629,7 +629,7 @@ jobs:
629629
630630 remix-ide-browser :
631631 docker :
632- - image : cimg/node:20.17.0 -browsers
632+ - image : cimg/node:20.18.3 -browsers
633633 resource_class :
634634 xlarge
635635 working_directory : ~/remix-project
Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ import EventEmitter from 'events'
66*/
77
88class SwitchBrowserTab extends EventEmitter {
9- command ( this : NightwatchBrowser , index : number ) : NightwatchBrowser {
9+ command ( this : NightwatchBrowser , index : number ) : NightwatchBrowser {
1010 this . api . perform ( ( browser : NightwatchAPI , done ) => {
11+ const runtimeBrowser = browser . options . desiredCapabilities . browserName
1112 browser . windowHandles ( ( result ) => {
1213 console . log ( 'switching to window' , result )
13- browser . switchWindow ( result . value [ index ] )
14+ if ( Array . isArray ( result . value ) ) {
15+ if ( runtimeBrowser === 'chrome' ) {
16+ index = index + 1
17+ }
18+ browser . switchWindow ( result . value [ index ] || result . value [ 0 ] )
19+ }
1420 done ( )
1521 } )
1622 this . emit ( 'complete' )
You can’t perform that action at this time.
0 commit comments