From d758edce4226538051addaf1739db4d9da7bd492 Mon Sep 17 00:00:00 2001 From: Iveta Date: Wed, 18 Dec 2024 09:04:22 -0500 Subject: [PATCH] Tweak fee bump test --- tests/feeBumpPage.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/feeBumpPage.test.ts b/tests/feeBumpPage.test.ts index 6a858737..13a96fd9 100644 --- a/tests/feeBumpPage.test.ts +++ b/tests/feeBumpPage.test.ts @@ -55,7 +55,10 @@ test.describe("Fee Bump Page", () => { await page.getByLabel("Base Fee").fill(BASE_FEE); await page.getByText("Sign in Transaction Signer").click(); - await expect(page.locator("h1")).toHaveText("Transaction Overview"); + // Adding extra delay because sometimes it takes longer to load the next page + await expect(page.locator("h1")).toHaveText("Transaction Overview", { + timeout: 5000, + }); await expect(page.getByLabel("Transaction Envelope XDR")).toHaveText( MOCK_XDR, ); @@ -65,7 +68,10 @@ test.describe("Fee Bump Page", () => { await page.getByLabel("Base Fee").fill(BASE_FEE); await page.getByText("View in XDR Viewer").click(); - await expect(page.locator("h1")).toHaveText("View XDR"); + // Adding extra delay because sometimes it takes longer to load the next page + await expect(page.locator("h1")).toHaveText("View XDR", { + timeout: 5000, + }); await expect(page.getByLabel("Base-64 encoded XDR")).toHaveText(MOCK_XDR); }); });