From b9b31fa0fb62f9a78cb6fce4738d0e8d1a21faa4 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Mon, 2 Jun 2025 16:20:58 +0530 Subject: [PATCH] Match string exactly (#30067) The devices section in OIDC frontend has changed to include a heading with the device name. The device name and the client name both contain "Element", so playwright fails. --- playwright/e2e/oidc/oidc-native.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright/e2e/oidc/oidc-native.spec.ts b/playwright/e2e/oidc/oidc-native.spec.ts index e985e58d09..14259b2ec5 100644 --- a/playwright/e2e/oidc/oidc-native.spec.ts +++ b/playwright/e2e/oidc/oidc-native.spec.ts @@ -55,7 +55,7 @@ test.describe("OIDC Native", { tag: ["@no-firefox", "@no-webkit"] }, () => { const newPage = await newPagePromise; await newPage.getByText("Devices").click(); await newPage.getByText(deviceId).click(); - await expect(newPage.getByText("Element")).toBeVisible(); + await expect(newPage.getByText("Element", { exact: true })).toBeVisible(); await expect(newPage.getByText("http://localhost:8080/")).toBeVisible(); await expect(newPage).toHaveURL(/\/oauth2_session/); await newPage.close();