From 1e83c3f9c9a68c450f3d452b393018ac070dedc8 Mon Sep 17 00:00:00 2001 From: Janesh Sharma <52086988+Janesh98@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:46:52 +0100 Subject: [PATCH 1/2] Update cypress.config.js --- src/e2e/cypress.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/e2e/cypress.config.js b/src/e2e/cypress.config.js index 4a42488..d2ef90d 100644 --- a/src/e2e/cypress.config.js +++ b/src/e2e/cypress.config.js @@ -7,6 +7,20 @@ module.exports = defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { + // chrome 117 bug fix, https://github.com/cypress-io/cypress-documentation/issues/5479 + on('before:browser:launch', (browser = {}, launchOptions) => { + if (browser.name === 'chrome' && browser.isHeadless) { + launchOptions.args = launchOptions.args.map((arg) => { + if (arg === '--headless') { + return '--headless=new' + } + + return arg + }) + } + + return launchOptions + }) return require('./cypress/plugins/index.js')(on, config); }, baseUrl: 'https://coding-test-platform.web.app', From b57eabfaa5a611fdc03901426f0246ee808ad2a8 Mon Sep 17 00:00:00 2001 From: Janesh Sharma <52086988+Janesh98@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:47:59 +0100 Subject: [PATCH 2/2] Update test.yml --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc5f80a..6c7858f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,6 @@ name: Prod E2E on: + workflow_dispatch: schedule: # runs tests every monday at 10am - cron: '0 10 * * MON' @@ -23,4 +24,4 @@ jobs: run: | chmod +x ./src/e2e/email-test.sh ./src/e2e/email-test.sh - shell: bash \ No newline at end of file + shell: bash