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:
5
5
type : boolean
6
6
default : false
7
7
orbs :
8
- browser-tools : circleci/browser-tools@1.4.4
8
+ browser-tools : circleci/browser-tools@1.5.2
9
9
10
10
11
11
jobs :
@@ -629,7 +629,7 @@ jobs:
629
629
630
630
remix-ide-browser :
631
631
docker :
632
- - image : cimg/node:20.17.0 -browsers
632
+ - image : cimg/node:20.18.3 -browsers
633
633
resource_class :
634
634
xlarge
635
635
working_directory : ~/remix-project
Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ import EventEmitter from 'events'
6
6
*/
7
7
8
8
class SwitchBrowserTab extends EventEmitter {
9
- command ( this : NightwatchBrowser , index : number ) : NightwatchBrowser {
9
+ command ( this : NightwatchBrowser , index : number ) : NightwatchBrowser {
10
10
this . api . perform ( ( browser : NightwatchAPI , done ) => {
11
+ const runtimeBrowser = browser . options . desiredCapabilities . browserName
11
12
browser . windowHandles ( ( result ) => {
12
13
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
+ }
14
20
done ( )
15
21
} )
16
22
this . emit ( 'complete' )
You can’t perform that action at this time.
0 commit comments