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 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',