From 67d2ebbbc3e6b391fbc68c7586e0624376b34832 Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:18:17 -0500 Subject: [PATCH 1/7] cy 13.2.0 --- .DS_Store | Bin 6148 -> 10244 bytes README.md | 15 ++++ infrastructure/package.json | 2 +- infrastructure/yarn.lock | 43 +++++----- web/package-lock.json | 161 +++++++++++++++++++----------------- web/package.json | 6 +- 6 files changed, 128 insertions(+), 99 deletions(-) diff --git a/.DS_Store b/.DS_Store index c1f0dce2e30d6d79151f7c29b1cf5db152fd5fc5..603e4f180f80c90d188e799417188c31f6063767 100644 GIT binary patch literal 10244 zcmeHMYitx%6h3EK=!_j;sO2e>-MR=3F1B0BV?l6f%S)&r+tO_**4>?<9huJ5o!MQW zsVOl&P!f%=#9zec&qj>~i9yj{CcdI+NF=LUv4f+6q0D%C33kb0FAxw?Ygil8~^_C9mye$CHN)me) z{ic0@XA|~m!l$F0dZy%)?;g-MMSqKd+?@1bHk@d}r=y&5b3kqm=+BJ)4h6m0$u8^- z2TX7p^Z^0^0+SJ7dv_7CFaT*7x_JMdG3^ZLj%9{S!*LrMPoYpzIb~{9l~h$-wI?}X z7n5$<%{wjW+-}Bo*tVG|{Z40g8G5l#scp3_H*HvY&NDDHord&w8J1=jTkO20Ii78j zDQ)2lQlDRn{4c)m6p{$V1NaC=`EjgN?O7%E)&TaLa^(ji;(Rb?P%P8n=*UX(a|F#9HT0XkuC6&(@59bZ{fD#c!K1ZDzk(BquUX5S9sc&E%~)oq8^om#9%mNsAp00mNN2$T3NAq>g=5Gu*UUULh)))M=(Oy2(Xx zd5x%SmAVQ%axScu?-8X`)*c+BU>q)MQQJi2Q}F>d@wT+%ZXePunwy2Tu})RHnS8yb z=^8~af9|{*b*tJgD&L4b&Okb+Z!c0Im*n@0qW8Q>&OB|<4A;J(>|{#CunGpP5%eth zQXxhX#gpDMi6oZrXA|KBz{6OoEwMgj{|Z!C1gq#@KnGQ$4Ts6Dr560WVL=^Oskq9O|SZ(f41j zK$R+1%;Gp3U3a@2Ql?NDady#SVy99GarVw=D5MBfxtwi`g=D3I>QeG-mq&?3pNX%Q zWu=lTl*b;%3VBZP-rP zp28m7jlHO2KN|QD<-Usr+>ZzFAU=wZ;S=~I9;VEH0bj(I@F>1Q+5bA_{}{f7Z{s`o z0iM8*@Fafh)xkJ^hdHOa~Myb@MWW%dgf&3nG@xw`PckoK(PP6j>m7o{{Lp& G|Njg0V?Yo9 delta 115 zcmZn(XfcprU|?W$DortDU=RQ@Ie-{MGjUEV6q~50$jH1gU^gQp^CUr$%?bj{j2lay xuq=0.8" } @@ -5468,16 +5473,18 @@ }, "node_modules/aws-sign2": { "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "*" } }, "node_modules/aws4": { "version": "1.12.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", + "dev": true }, "node_modules/awscred": { "version": "1.5.0", @@ -5752,8 +5759,9 @@ }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tweetnacl": "^0.14.3" } @@ -6046,8 +6054,9 @@ }, "node_modules/caseless": { "version": "0.12.0", - "dev": true, - "license": "Apache-2.0" + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "dev": true }, "node_modules/chalk": { "version": "4.1.2", @@ -6459,8 +6468,9 @@ }, "node_modules/core-util-is": { "version": "1.0.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true }, "node_modules/cosmiconfig": { "version": "7.0.1", @@ -6842,14 +6852,15 @@ } }, "node_modules/cypress": { - "version": "12.17.4", + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.2.0.tgz", + "integrity": "sha512-AvDQxBydE771GTq0TR4ZUBvv9m9ffXuB/ueEtpDF/6gOcvFR96amgwSJP16Yhqw6VhmwqspT5nAGzoxxB+D89g==", "dev": true, "hasInstallScript": true, - "license": "MIT", "dependencies": { - "@cypress/request": "2.88.12", + "@cypress/request": "^3.0.0", "@cypress/xvfb": "^1.2.4", - "@types/node": "^16.18.39", + "@types/node": "^18.17.5", "@types/sinonjs__fake-timers": "8.1.1", "@types/sizzle": "^2.3.2", "arch": "^2.2.0", @@ -6895,7 +6906,7 @@ "cypress": "bin/cypress" }, "engines": { - "node": "^14.0.0 || ^16.0.0 || >=18.0.0" + "node": "^16.0.0 || ^18.0.0 || >=20.0.0" } }, "node_modules/cypress-map": { @@ -6910,6 +6921,12 @@ "cypress": ">=12" } }, + "node_modules/cypress/node_modules/@types/node": { + "version": "18.17.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.17.tgz", + "integrity": "sha512-cOxcXsQ2sxiwkykdJqvyFS+MLQPLvIdwh5l6gNg8qF6s+C7XSkEWOZjK+XhUZd+mYvHV/180g2cnCcIl4l06Pw==", + "dev": true + }, "node_modules/cypress/node_modules/execa": { "version": "4.1.0", "dev": true, @@ -6982,8 +6999,9 @@ }, "node_modules/dashdash": { "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", "dev": true, - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" }, @@ -7315,8 +7333,9 @@ }, "node_modules/ecc-jsbn": { "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dev": true, - "license": "MIT", "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" @@ -8253,8 +8272,9 @@ }, "node_modules/extend": { "version": "3.0.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true }, "node_modules/extract-zip": { "version": "2.0.1", @@ -8277,11 +8297,12 @@ }, "node_modules/extsprintf": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "dev": true, "engines": [ "node >=0.6.0" - ], - "license": "MIT" + ] }, "node_modules/fast-deep-equal": { "version": "3.1.3", @@ -8566,8 +8587,9 @@ }, "node_modules/forever-agent": { "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "*" } @@ -8836,8 +8858,9 @@ }, "node_modules/getpass": { "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", "dev": true, - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" } @@ -9265,8 +9288,9 @@ }, "node_modules/http-signature": { "version": "1.3.6", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.3.6.tgz", + "integrity": "sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw==", "dev": true, - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^2.0.2", @@ -9823,8 +9847,9 @@ }, "node_modules/isstream": { "version": "0.1.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "dev": true }, "node_modules/istanbul-lib-coverage": { "version": "3.2.0", @@ -10730,8 +10755,9 @@ }, "node_modules/jsbn": { "version": "0.1.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true }, "node_modules/jsdom": { "version": "16.7.0", @@ -10789,25 +10815,6 @@ "node": ">= 6" } }, - "node_modules/jsdom/node_modules/tough-cookie": { - "version": "4.0.0", - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.1.2" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsdom/node_modules/universalify": { - "version": "0.1.2", - "license": "MIT", - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/jsdom/node_modules/ws": { "version": "7.5.8", "license": "MIT", @@ -10855,8 +10862,9 @@ }, "node_modules/json-stringify-safe": { "version": "5.0.1", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true }, "node_modules/json5": { "version": "2.2.1", @@ -10887,11 +10895,12 @@ }, "node_modules/jsprim": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz", + "integrity": "sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==", "dev": true, "engines": [ "node >=0.6.0" ], - "license": "MIT", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -13113,8 +13122,8 @@ }, "node_modules/querystringify": { "version": "2.2.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -14301,8 +14310,9 @@ }, "node_modules/sshpk": { "version": "1.17.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", + "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", "dev": true, - "license": "MIT", "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -15011,8 +15021,8 @@ }, "node_modules/tough-cookie": { "version": "4.1.3", - "dev": true, - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", @@ -15025,8 +15035,8 @@ }, "node_modules/tough-cookie/node_modules/universalify": { "version": "0.2.0", - "dev": true, - "license": "MIT", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", "engines": { "node": ">= 4.0.0" } @@ -15089,8 +15099,9 @@ }, "node_modules/tunnel-agent": { "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" }, @@ -15100,8 +15111,9 @@ }, "node_modules/tweetnacl": { "version": "0.14.5", - "dev": true, - "license": "Unlicense" + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "dev": true }, "node_modules/type-check": { "version": "0.3.2", @@ -15291,8 +15303,8 @@ }, "node_modules/url-parse": { "version": "1.5.10", - "dev": true, - "license": "MIT", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -15384,25 +15396,18 @@ }, "node_modules/verror": { "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", "dev": true, "engines": [ "node >=0.6.0" ], - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, - "node_modules/verror/node_modules/extsprintf": { - "version": "1.4.1", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" - }, "node_modules/w3c-hr-time": { "version": "1.0.2", "license": "MIT", diff --git a/web/package.json b/web/package.json index 24dde6b..0ed0544 100644 --- a/web/package.json +++ b/web/package.json @@ -18,9 +18,13 @@ "test": "react-scripts test --watchAll=false", "eject": "react-scripts eject", "typecheck": "tsc --noEmit", + "get:branch": "git rev-parse --abbrev-ref HEAD", "cy:open": "cypress open --e2e --browser chrome", + "cy:open-branch": "BRANCH=$(npm run get:branch | awk 'END{print}') && cross-env NODE_ENV=$BRANCH yarn cy:open", "cy:run": "cypress run --e2e --browser chrome", + "cy:run-branch": "BRANCH=$(npm run get:branch | awk 'END{print}') && cross-env NODE_ENV=$BRANCH yarn cy:run", "cy:run-fast": "CYPRESS_NO_COMMAND_LOG=1 cypress run --e2e --browser chrome --config video=false screenshot=false", + "cy:run-branch-fast": "BRANCH=$(npm run get:branch | awk 'END{print}') && cross-env NODE_ENV=$BRANCH yarn cy:run-fast", "cy:open-stage": "NODE_ENV=stage cy:open", "cy:run-stage": "NODE_ENV=stage cy:run", "cy:run-fast-stage": "NODE_ENV=stage cy:run-fast" @@ -58,7 +62,7 @@ "awscred": "^1.5.0", "cross-env": "^7.0.3", "cy-spok": "^1.6.2", - "cypress": "^12.17.4", + "cypress": "^13.2.0", "cypress-map": "^1.21.1", "dotenv": "16.0.2", "typescript": "^4.4.2" From 76e0587f681b751f1a88b4013fec7ea177d27aaf Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:18:45 -0500 Subject: [PATCH 2/7] cy 13.2.0 --- .github/workflows/PR.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index ac6e3d3..77d2646 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -86,9 +86,9 @@ jobs: with: browser: chrome install: false - # record: true - # group: e2e-tests - # tag: branch-backend + record: true + group: e2e-tests + tag: branch-backend working-directory: infrastructure # in case you cannot export env vars, use this @@ -104,9 +104,9 @@ jobs: browser: chrome install: false config: baseUrl=${{ env.FrontendUrl }} - # record: true - # group: e2e-tests - # tag: branch-front-end + record: true + group: e2e-tests + tag: branch-front-end working-directory: web From 73bdecaca6a2509875e40b236d8cdcdec3a37ce6 Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:22:28 -0500 Subject: [PATCH 3/7] projectId --- infrastructure/cypress.config.ts | 1 + web/cypress.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/infrastructure/cypress.config.ts b/infrastructure/cypress.config.ts index 0f1962f..5e2f162 100644 --- a/infrastructure/cypress.config.ts +++ b/infrastructure/cypress.config.ts @@ -4,6 +4,7 @@ import tasks from './cypress/support/tasks' require('dotenv').config() export default defineConfig({ + projectId: '98jgjt', viewportWidth: 1380, viewportHeight: 1080, retries: { diff --git a/web/cypress.config.ts b/web/cypress.config.ts index 932c367..d91d3bf 100644 --- a/web/cypress.config.ts +++ b/web/cypress.config.ts @@ -13,6 +13,7 @@ const apiUrl = `https://${backend_subdomain}.${domain_name}` console.log({deployment, apiUrl}) export default defineConfig({ + projectId: '98jgjt', viewportWidth: 1380, viewportHeight: 1080, retries: { From bee0e73da81dbc0f624b769dedc2ca6f67014bfb Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:23:22 -0500 Subject: [PATCH 4/7] re-run checks From 3a78307c9f9842808b423fd7f7300a48da75ada5 Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:35:23 -0500 Subject: [PATCH 5/7] record on cy cloud --- .github/workflows/PR.yml | 9 ++++++--- .github/workflows/dev-stage-prod.yml | 16 ++++++++++------ web/cypress.config.ts | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 77d2646..86ccd6b 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -90,6 +90,8 @@ jobs: group: e2e-tests tag: branch-backend working-directory: infrastructure + env: + CYPRESS_RECORD_KEY: ${{ API_CYPRESS_RECORD_KEY }} # in case you cannot export env vars, use this - name: Get S3 bucket website URL @@ -107,10 +109,11 @@ jobs: record: true group: e2e-tests tag: branch-front-end - working-directory: - web + working-directory: web + env: + CYPRESS_RECORD_KEY: ${{ UI_CYPRESS_RECORD_KEY }} - # Schema verification + # Schema verification - name: verify the schema with Optic run: | cd infrastructure diff --git a/.github/workflows/dev-stage-prod.yml b/.github/workflows/dev-stage-prod.yml index 6f28049..4298539 100644 --- a/.github/workflows/dev-stage-prod.yml +++ b/.github/workflows/dev-stage-prod.yml @@ -95,10 +95,12 @@ jobs: with: browser: chrome install: false - # record: true - # group: e2e-tests - # tag: branch-backend + record: true + group: e2e-tests + tag: branch-backend working-directory: infrastructure + env: + CYPRESS_RECORD_KEY: ${{ API_CYPRESS_RECORD_KEY }} # in case you cannot export env vars, use this - name: Get website URL @@ -113,7 +115,9 @@ jobs: browser: chrome install: false config: baseUrl=${{ env.FrontendUrl }} - # record: true - # group: e2e-tests - # tag: branch-front-end + record: true + group: e2e-tests + tag: branch-front-end working-directory: web + env: + CYPRESS_RECORD_KEY: ${{ UI_CYPRESS_RECORD_KEY }} diff --git a/web/cypress.config.ts b/web/cypress.config.ts index d91d3bf..3c49b42 100644 --- a/web/cypress.config.ts +++ b/web/cypress.config.ts @@ -13,7 +13,7 @@ const apiUrl = `https://${backend_subdomain}.${domain_name}` console.log({deployment, apiUrl}) export default defineConfig({ - projectId: '98jgjt', + projectId: '6pohtd', viewportWidth: 1380, viewportHeight: 1080, retries: { From c613f3fcf5e9e2f2c1668a929f1bdfe472f78a12 Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:38:55 -0500 Subject: [PATCH 6/7] re-run checks From 4edca50868a15f1d2ce8123576b16f1285fe16e7 Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 19 Sep 2023 08:40:58 -0500 Subject: [PATCH 7/7] secrets dot --- .github/workflows/PR.yml | 4 ++-- .github/workflows/dev-stage-prod.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 86ccd6b..9642653 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -91,7 +91,7 @@ jobs: tag: branch-backend working-directory: infrastructure env: - CYPRESS_RECORD_KEY: ${{ API_CYPRESS_RECORD_KEY }} + CYPRESS_RECORD_KEY: ${{ secrets.API_CYPRESS_RECORD_KEY }} # in case you cannot export env vars, use this - name: Get S3 bucket website URL @@ -111,7 +111,7 @@ jobs: tag: branch-front-end working-directory: web env: - CYPRESS_RECORD_KEY: ${{ UI_CYPRESS_RECORD_KEY }} + CYPRESS_RECORD_KEY: ${{ secrets.UI_CYPRESS_RECORD_KEY }} # Schema verification - name: verify the schema with Optic diff --git a/.github/workflows/dev-stage-prod.yml b/.github/workflows/dev-stage-prod.yml index 4298539..f92ca1d 100644 --- a/.github/workflows/dev-stage-prod.yml +++ b/.github/workflows/dev-stage-prod.yml @@ -100,7 +100,7 @@ jobs: tag: branch-backend working-directory: infrastructure env: - CYPRESS_RECORD_KEY: ${{ API_CYPRESS_RECORD_KEY }} + CYPRESS_RECORD_KEY: ${{ secrets.API_CYPRESS_RECORD_KEY }} # in case you cannot export env vars, use this - name: Get website URL @@ -120,4 +120,4 @@ jobs: tag: branch-front-end working-directory: web env: - CYPRESS_RECORD_KEY: ${{ UI_CYPRESS_RECORD_KEY }} + CYPRESS_RECORD_KEY: ${{ secrets.UI_CYPRESS_RECORD_KEY }}