From 45fe3d88141b6cf927686b395906c809b9bcfc5e Mon Sep 17 00:00:00 2001 From: Twaha Rahman <39026437+Twaha-Rahman@users.noreply.github.com> Date: Mon, 14 Dec 2020 23:50:48 +0600 Subject: [PATCH] fix(cypress): Re-introduce Firefox in Cypress CI (#40440) * Revert "chore: drop firefox for intermittent fails" This reverts commit 704beb2260794436e93d473a75c3699391663ba8. * Increase timeout for Cypress learn log output test --- .github/workflows/cypress.yml | 2 +- cypress/integration/learn/challenges/output.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index eeb8d90543..22827119c8 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - browsers: [chrome] + browsers: [chrome, firefox] services: mongodb: image: mongo:3.6.19 diff --git a/cypress/integration/learn/challenges/output.js b/cypress/integration/learn/challenges/output.js index a9750685f7..ebf5b2147f 100644 --- a/cypress/integration/learn/challenges/output.js +++ b/cypress/integration/learn/challenges/output.js @@ -40,7 +40,7 @@ describe('Classic challenge', function() { it('shows test output when the tests are run', () => { cy.visit(locations.index); // first wait for the editor to load - cy.get(selectors.editor, { timeout: 10000 }); + cy.get(selectors.editor, { timeout: 15000 }); cy.get(selectors.runTestsButton) .click() .then(() => { @@ -53,7 +53,7 @@ describe('Classic challenge', function() { it('shows test output when the tests are triggered by the keyboard', () => { cy.visit(locations.index); // first wait for the editor to load - cy.get(selectors.editor, { timeout: 10000 }); + cy.get(selectors.editor, { timeout: 15000 }); cy.get(selectors.hotkeys) .focus() .type('{ctrl}{enter}')