Skip to content

Commit ead6ea7

Browse files
authored
fix: update gov.tools URL for preprod env [LW-13129] (#1919)
* fix: update gov.tools link for preprod env * test: update test with gov.tools URL
1 parent c5b2d7f commit ead6ea7

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

apps/browser-extension-wallet/.env.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ BANXA_LACE_URL=https://lacewallet.banxa-sandbox.com/
5353
BANXA_HOMEPAGE_URL=https://banxa.com/
5454
NFTPRINTLAB_URL=https://nftprintlab.io/
5555
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
5757
GOV_TOOLS_URL_PREVIEW=https://preview.gov.tools
5858
GOV_TOOLS_URL_SANCHONET=
5959
TEMPO_VOTE_URL_MAINNET=https://tempo.vote

apps/browser-extension-wallet/.env.developerpreview

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ BANXA_LACE_URL=https://lacewallet.banxa-sandbox.com/
5151
BANXA_HOMEPAGE_URL=https://banxa.com/
5252
NFTPRINTLAB_URL=https://nftprintlab.io/
5353
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
5555
GOV_TOOLS_URL_PREVIEW=https://preview.gov.tools
5656
GOV_TOOLS_URL_SANCHONET=
5757
TEMPO_VOTE_URL_MAINNET=https://tempo.vote

apps/browser-extension-wallet/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ BANXA_LACE_URL=https://lacewallet.banxa-sandbox.com/
5050
BANXA_HOMEPAGE_URL=https://banxa.com/
5151
NFTPRINTLAB_URL=https://nftprintlab.io/
5252
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
5454
GOV_TOOLS_URL_PREVIEW=https://preview.gov.tools
5555
GOV_TOOLS_URL_SANCHONET=
5656
TEMPO_VOTE_URL_MAINNET=https://tempo.vote

packages/e2e-tests/src/steps/commonSteps.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,21 @@ When(
457457
);
458458

459459
Then(/^Gov Tool page is displayed in a new tab$/, 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+
}
463475
await commonAssert.assertSeeTabWithUrl(expectedUrl);
464476
});
465477

0 commit comments

Comments
 (0)