diff --git a/apps/stats-e2e/.env b/apps/stats-e2e/.env index 6c20d35dd..2ffc8e07a 100644 --- a/apps/stats-e2e/.env +++ b/apps/stats-e2e/.env @@ -1,3 +1,4 @@ # App configuration variables NX_VEGA_ENV = 'TESTNET' +CYPRESS_VEGA_ENV = 'TESTNET' NX_VEGA_REST = 'https://lb.testnet.vega.xyz/datanode/rest' diff --git a/apps/stats-e2e/.env.devnet b/apps/stats-e2e/.env.devnet index b4b50b8a9..d07477535 100644 --- a/apps/stats-e2e/.env.devnet +++ b/apps/stats-e2e/.env.devnet @@ -1,3 +1,4 @@ # App configuration variables NX_VEGA_ENV = 'DEVNET' +CYPRESS_VEGA_ENV = 'DEVNET' NX_VEGA_REST = 'https://n04.d.vega.xyz/datanode/rest' diff --git a/apps/stats-e2e/.env.mainnet b/apps/stats-e2e/.env.mainnet index 55d4d65ea..6269ea3e4 100644 --- a/apps/stats-e2e/.env.mainnet +++ b/apps/stats-e2e/.env.mainnet @@ -1,3 +1,4 @@ # App configuration variables NX_VEGA_ENV = 'MAINNET' +CYPRESS_VEGA_ENV = 'MAINNET' NX_VEGA_REST = 'https://api.token.vega.xyz/' diff --git a/apps/stats-e2e/.env.stagnet1 b/apps/stats-e2e/.env.stagnet1 index a9ec115d3..f382a1675 100644 --- a/apps/stats-e2e/.env.stagnet1 +++ b/apps/stats-e2e/.env.stagnet1 @@ -1,3 +1,4 @@ # App configuration variables NX_VEGA_ENV = 'STAGNET 1' +CYPRESS_VEGA_ENV = 'STAGNET 1' NX_VEGA_REST = 'https://n03.s.vega.xyz/datanode/rest' diff --git a/apps/stats-e2e/.env.stagnet2 b/apps/stats-e2e/.env.stagnet2 index e19fe0891..96d28ba03 100644 --- a/apps/stats-e2e/.env.stagnet2 +++ b/apps/stats-e2e/.env.stagnet2 @@ -1,3 +1,4 @@ # App configuration variables NX_VEGA_ENV = 'STAGNET 2' +CYPRESS_VEGA_ENV = 'STAGNET 2' NX_VEGA_REST = 'https://n01.stagnet2.vega.xyz/datanode/rest' diff --git a/apps/stats-e2e/.env.testnet b/apps/stats-e2e/.env.testnet index 6c20d35dd..2ffc8e07a 100644 --- a/apps/stats-e2e/.env.testnet +++ b/apps/stats-e2e/.env.testnet @@ -1,3 +1,4 @@ # App configuration variables NX_VEGA_ENV = 'TESTNET' +CYPRESS_VEGA_ENV = 'TESTNET' NX_VEGA_REST = 'https://lb.testnet.vega.xyz/datanode/rest' diff --git a/apps/stats-e2e/src/integration/app.spec.ts b/apps/stats-e2e/src/integration/app.spec.ts index 7ae0dc040..6ae926aed 100644 --- a/apps/stats-e2e/src/integration/app.spec.ts +++ b/apps/stats-e2e/src/integration/app.spec.ts @@ -1,4 +1,4 @@ -const textToCheck = process.env['NX_VEGA_ENV']; +const textToCheck = Cypress.env('VEGA_ENV'); describe('stats', () => { beforeEach(() => cy.visit('/'));