File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed
apps/browser-extension-wallet
packages/e2e-tests/src/steps Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ BANXA_LACE_URL=https://lacewallet.banxa-sandbox.com/
53
53
BANXA_HOMEPAGE_URL=https://banxa.com/
54
54
NFTPRINTLAB_URL=https://nftprintlab.io/
55
55
GOV_TOOLS_URL_MAINNET=https://gov.tools
56
- GOV_TOOLS_URL_PREPROD=https://preprod .gov.tools
56
+ GOV_TOOLS_URL_PREPROD=https://pre-prod .gov.tools
57
57
GOV_TOOLS_URL_PREVIEW=https://preview.gov.tools
58
58
GOV_TOOLS_URL_SANCHONET=
59
59
TEMPO_VOTE_URL_MAINNET=https://tempo.vote
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ BANXA_LACE_URL=https://lacewallet.banxa-sandbox.com/
51
51
BANXA_HOMEPAGE_URL=https://banxa.com/
52
52
NFTPRINTLAB_URL=https://nftprintlab.io/
53
53
GOV_TOOLS_URL_MAINNET=https://gov.tools
54
- GOV_TOOLS_URL_PREPROD=https://preprod .gov.tools
54
+ GOV_TOOLS_URL_PREPROD=https://pre-prod .gov.tools
55
55
GOV_TOOLS_URL_PREVIEW=https://preview.gov.tools
56
56
GOV_TOOLS_URL_SANCHONET=
57
57
TEMPO_VOTE_URL_MAINNET=https://tempo.vote
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ BANXA_LACE_URL=https://lacewallet.banxa-sandbox.com/
50
50
BANXA_HOMEPAGE_URL = https://banxa.com/
51
51
NFTPRINTLAB_URL = https://nftprintlab.io/
52
52
GOV_TOOLS_URL_MAINNET = https://gov.tools
53
- GOV_TOOLS_URL_PREPROD = https://preprod .gov.tools
53
+ GOV_TOOLS_URL_PREPROD = https://pre-prod .gov.tools
54
54
GOV_TOOLS_URL_PREVIEW = https://preview.gov.tools
55
55
GOV_TOOLS_URL_SANCHONET =
56
56
TEMPO_VOTE_URL_MAINNET = https://tempo.vote
Original file line number Diff line number Diff line change @@ -457,9 +457,21 @@ When(
457
457
) ;
458
458
459
459
Then ( / ^ G o v T o o l p a g e i s d i s p l a y e d i n a n e w t a b $ / , async ( ) => {
460
- const expectedUrl = extensionUtils . isMainnet ( )
461
- ? 'https://gov.tools/'
462
- : `https://${ String ( extensionUtils . getNetwork ( ) . name ) . toLowerCase ( ) } .gov.tools/` ;
460
+ let expectedUrl ;
461
+ const networkName = String ( extensionUtils . getNetwork ( ) . name ) . toLowerCase ( ) ;
462
+ switch ( networkName ) {
463
+ case 'mainnet' :
464
+ expectedUrl = 'https://gov.tools/' ;
465
+ break ;
466
+ case 'preprod' :
467
+ expectedUrl = 'https://pre-prod.gov.tools/' ;
468
+ break ;
469
+ case 'preview' :
470
+ expectedUrl = 'https://preview.gov.tools/' ;
471
+ break ;
472
+ default :
473
+ throw new Error ( `Unsupported network name: ${ networkName } ` ) ;
474
+ }
463
475
await commonAssert . assertSeeTabWithUrl ( expectedUrl ) ;
464
476
} ) ;
465
477
You can’t perform that action at this time.
0 commit comments