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
This commit is contained in:
Daniel Lockyer 2023-10-16 17:31:16 +02:00 committed by Daniel Lockyer
parent ccbcba0969
commit 3a564237a5

View File

@ -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();