From 3a564237a580a03f467be9e8b32224d402da4471 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 16 Oct 2023 17:31:16 +0200 Subject: [PATCH] Temporarily increased timeout for saving Offer in tests - if Stripe is slow, this might take longer than we expect to finish - this helps prevent flaky tests in CI --- ghost/core/test/e2e-browser/utils/e2e-browser-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js b/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js index 476fdbf60e..e895031b9c 100644 --- a/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js +++ b/ghost/core/test/e2e-browser/utils/e2e-browser-utils.js @@ -333,7 +333,7 @@ const createOffer = async (page, {name, tierName, offerType, amount, discountTyp // Wait for the "Saved" button, ensures that next clicks don't trigger the unsaved work modal await page.getByRole('button', {name: 'Saved'}).waitFor({ state: 'visible', - timeout: 1000 + timeout: 10000 }); await page.locator('.gh-nav a[href="#/offers/"]').click();