From 2f18c719f4a9bb41bbc2c5999aab5d40220f2ce3 Mon Sep 17 00:00:00 2001 From: aquint-zama Date: Wed, 28 Feb 2024 14:45:56 +0100 Subject: [PATCH] ci: add scheduled prod website e2e tests --- .env.production | 7 +++++++ package-lock.json | 28 ---------------------------- package.json | 2 +- tests/e2e/specs/erc20-deploy-mint.js | 2 +- 4 files changed, 9 insertions(+), 30 deletions(-) diff --git a/.env.production b/.env.production index 4fdbe6f..4a2358d 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,8 @@ ENV=production +SECRET_WORDS='test test test test test test test test test test test junk' +NETWORK_NAME=zamatest +RPC_URL=https://devnet.zama.ai +CHAIN_ID=8009 +SYMBOL=ZAMA +BLOCK_EXPLORER=https://main.explorer.zama.ai/ +IS_TESTNET=true diff --git a/package-lock.json b/package-lock.json index 0906e98..b35e5d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,6 @@ }, "devDependencies": { "@synthetixio/synpress": "^3.7.2-beta.10", - "@testing-library/cypress": "^10.0.1", "@types/node": "^18.14.2", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", @@ -5549,23 +5548,6 @@ "node": ">=10" } }, - "node_modules/@testing-library/cypress": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@testing-library/cypress/-/cypress-10.0.1.tgz", - "integrity": "sha512-e8uswjTZIBhaIXjzEcrQQ8nHRWHgZH7XBxKuIWxZ/T7FxfWhCR48nFhUX5nfPizjVOKSThEfOSv67jquc1ASkw==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.14.6", - "@testing-library/dom": "^9.0.0" - }, - "engines": { - "node": ">=12", - "npm": ">=6" - }, - "peerDependencies": { - "cypress": "^12.0.0 || ^13.0.0" - } - }, "node_modules/@testing-library/dom": { "version": "9.3.4", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz", @@ -27864,16 +27846,6 @@ "defer-to-connect": "^2.0.0" } }, - "@testing-library/cypress": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@testing-library/cypress/-/cypress-10.0.1.tgz", - "integrity": "sha512-e8uswjTZIBhaIXjzEcrQQ8nHRWHgZH7XBxKuIWxZ/T7FxfWhCR48nFhUX5nfPizjVOKSThEfOSv67jquc1ASkw==", - "dev": true, - "requires": { - "@babel/runtime": "^7.14.6", - "@testing-library/dom": "^9.0.0" - } - }, "@testing-library/dom": { "version": "9.3.4", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz", diff --git a/package.json b/package.json index f8218ab..f090856 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "start": "cross-env GATSBY_TELEMETRY_DISABLED=1 NODE_ENV=development gatsby develop", "synpress:open": "env-cmd -f .env.development synpress open -cf synpress.config.js", "synpress:run": "env-cmd -f .env.development synpress run --config baseUrl=http://localhost:8000", - "synpress:run-headless": "env-cmd -f .env.development synpress run --config baseUrl=http://localhost:8000 --headless", + "synpress:run-prod": "env-cmd -f .env.production synpress run --config baseUrl=https://dapps.zama.ai,taskTimeout=120000", "test": "start-server-and-test 'pnpm start' http://localhost:8000 'pnpm synpress:run'" }, "dependencies": { diff --git a/tests/e2e/specs/erc20-deploy-mint.js b/tests/e2e/specs/erc20-deploy-mint.js index 714948b..6b5499d 100644 --- a/tests/e2e/specs/erc20-deploy-mint.js +++ b/tests/e2e/specs/erc20-deploy-mint.js @@ -1,6 +1,6 @@ describe('Erc20 Deploy / Mint / Transfer', () => { before(() => { - cy.visit('http://localhost:8000/erc20'); + cy.visit('/erc20'); }); it('should connect wallet with success', () => {