From 170544128ebba1e623f03fb9e2710cdc5b9bb831 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 7 Feb 2021 00:28:14 -0800 Subject: [PATCH] Reduce Cypress network timeouts Now that we drastically sped up our local GraphQL requests, we can comfortably reduce these timeouts from 20sec to 6sec before deciding the test failed! What an exciting improvement :3 --- cypress/integration/ItemSearchPage.spec.js | 5 ++--- cypress/integration/WardrobePage/SearchPanel.spec.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cypress/integration/ItemSearchPage.spec.js b/cypress/integration/ItemSearchPage.spec.js index 4dba92a..35002fa 100644 --- a/cypress/integration/ItemSearchPage.spec.js +++ b/cypress/integration/ItemSearchPage.spec.js @@ -1,6 +1,5 @@ -// Our local dev server is slow, give it plenty of breathing room! -// (For me, it can often take 10-15 seconds when working correctly.) -const networkTimeout = { timeout: 20000 }; +// Give network requests a bit of breathing room! +const networkTimeout = { timeout: 6000 }; describe("ItemSearchPage", () => { // NOTE: This test depends on specific search results on certain pages, and diff --git a/cypress/integration/WardrobePage/SearchPanel.spec.js b/cypress/integration/WardrobePage/SearchPanel.spec.js index ab8eb27..f353beb 100644 --- a/cypress/integration/WardrobePage/SearchPanel.spec.js +++ b/cypress/integration/WardrobePage/SearchPanel.spec.js @@ -1,6 +1,5 @@ -// Our local dev server is slow, give it plenty of breathing room! -// (For me, it can often take 10-15 seconds when working correctly.) -const networkTimeout = { timeout: 20000 }; +// Give network requests a bit of breathing room! +const networkTimeout = { timeout: 6000 }; describe("WardrobePage: SearchPanel", () => { // NOTE: This test depends on specific search results on certain pages, and