From ac806931c1cfbcb757030c586d729d7a0168b2fe Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Tue, 17 Nov 2020 14:26:14 +0100 Subject: [PATCH] test(e2e-development-runtime): bump timeout for those flaky test that seems to timeout sometimes in CI (#28122) --- e2e-tests/development-runtime/cypress.json | 2 +- packages/gatsby-cypress/src/commands.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e-tests/development-runtime/cypress.json b/e2e-tests/development-runtime/cypress.json index da70aff9ad3ca..0d1d1077b6539 100644 --- a/e2e-tests/development-runtime/cypress.json +++ b/e2e-tests/development-runtime/cypress.json @@ -2,5 +2,5 @@ "baseUrl": "http://localhost:8000", "failOnStatusCode": false, "chromeWebSecurity": false, - "defaultCommandTimeout": 10000 + "defaultCommandTimeout": 30000 } diff --git a/packages/gatsby-cypress/src/commands.js b/packages/gatsby-cypress/src/commands.js index cefe920081b02..ad3fa699bd205 100644 --- a/packages/gatsby-cypress/src/commands.js +++ b/packages/gatsby-cypress/src/commands.js @@ -6,7 +6,7 @@ Cypress.Commands.add(`getTestElement`, (selector, options = {}) => cy.get(`[data-testid="${selector}"]`, options) ) -const TIMEOUT = 10000 +const TIMEOUT = 30000 Cypress.Commands.add( `waitForAPI`,