From ebb974f76e338be3fa11e205752db38d9c2ee1fb Mon Sep 17 00:00:00 2001 From: Bartek Date: Tue, 8 Oct 2024 16:00:30 +0200 Subject: [PATCH] fixes --- package.json | 2 +- packages/arb-token-bridge-ui/synpress.config.ts | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index b210971fe1..b9213b2bbd 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test:e2e": "yarn workspace arb-token-bridge-ui env-cmd --silent --file .e2e.env yarn synpress run --configFile synpress.config.ts", "test:e2e:cctp": "yarn test:e2e --configFile synpress.cctp.config.ts", "test:e2e:orbit": "E2E_ORBIT=true yarn test:e2e", - "test:e2e:orbit:custom-gas-token": "E2E_ORBIT_CUSTOM_GAS_TOKEN=true yarn test:e2e" + "test:e2e:orbit:custom-gas-token": "NEXT_PUBLIC_E2E_ORBIT_CUSTOM_GAS_TOKEN=true yarn test:e2e" }, "resolutions": { "**/@walletconnect/ethereum-provider": "2.13.1", diff --git a/packages/arb-token-bridge-ui/synpress.config.ts b/packages/arb-token-bridge-ui/synpress.config.ts index 51bbf1caf0..5c83790814 100644 --- a/packages/arb-token-bridge-ui/synpress.config.ts +++ b/packages/arb-token-bridge-ui/synpress.config.ts @@ -44,17 +44,10 @@ const tests = process.env.TEST_FILE const isOrbitTest = [ process.env.E2E_ORBIT, - process.env.E2E_ORBIT_CUSTOM_GAS_TOKEN + process.env.NEXT_PUBLIC_E2E_ORBIT_CUSTOM_GAS_TOKEN ].includes('true') const shouldRecordVideo = process.env.CYPRESS_RECORD_VIDEO === 'true' -console.log({ isOrbitTest }) -console.log('process.env.E2E_ORBIT: ', process.env.E2E_ORBIT) -console.log( - 'process.env.E2E_ORBIT_CUSTOM_GAS_TOKEN: ', - process.env.E2E_ORBIT_CUSTOM_GAS_TOKEN -) - const l3Network = process.env.ORBIT_CUSTOM_GAS_TOKEN === 'true' ? defaultL3CustomGasTokenNetwork @@ -203,7 +196,7 @@ export default defineConfig({ checkForAssertions({ parentProvider, testType: - process.env.E2E_ORBIT_CUSTOM_GAS_TOKEN === 'true' + process.env.NEXT_PUBLIC_E2E_ORBIT_CUSTOM_GAS_TOKEN === 'true' ? 'orbit-custom' : process.env.E2E_ORBIT === 'true' ? 'orbit-eth' @@ -299,7 +292,7 @@ if (!process.env.PRIVATE_KEY_USER) { } const localWallet = new Wallet( - process.env.E2E_ORBIT_CUSTOM_GAS_TOKEN === 'true' + process.env.NEXT_PUBLIC_E2E_ORBIT_CUSTOM_GAS_TOKEN === 'true' ? utils.sha256(utils.toUtf8Bytes('user_fee_token_deployer')) : process.env.PRIVATE_KEY_CUSTOM )