Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx committed Oct 8, 2024
1 parent f9f632c commit ebb974f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 3 additions & 10 deletions packages/arb-token-bridge-ui/synpress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit ebb974f

Please sign in to comment.