From a1918dc6cce1300d36091c121280f924a373a28e Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux <nseydoux@inrupt.com> Date: Mon, 6 Jan 2025 10:50:14 +0100 Subject: [PATCH] Fix order of expectations --- e2e/browser/test/e2e.playwright.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/browser/test/e2e.playwright.ts b/e2e/browser/test/e2e.playwright.ts index 8de811f4..e8fa3bba 100644 --- a/e2e/browser/test/e2e.playwright.ts +++ b/e2e/browser/test/e2e.playwright.ts @@ -72,10 +72,10 @@ test("Try issuing an invalid credential, get an error", async ({ // Try to issue VC with invalid credentials await Promise.all([ - page.click("button[data-testid=issue-invalid-vc]"), - page.click("button[data-nextjs-errors-dialog-left-right-close-button]"), page.waitForRequest((request) => request.method() === "POST"), page.waitForResponse((response) => response.status() === 400), + page.click("button[data-testid=issue-invalid-vc]"), + page.click("button[data-nextjs-errors-dialog-left-right-close-button]"), ]); // Validate we get nothing in response await expect(