From 3cf9166c7dbd43c308a29ccb9ff466444f7c2dc9 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Thu, 17 Oct 2024 16:42:59 +0100
Subject: [PATCH] Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
playwright/element-web-test.ts | 2 +-
playwright/pages/ElementAppPage.ts | 2 +-
.../__snapshots__/MessageEditHistoryDialog-test.tsx.snap | 2 --
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/playwright/element-web-test.ts b/playwright/element-web-test.ts
index 2973f88cdab..fea99ad21ad 100644
--- a/playwright/element-web-test.ts
+++ b/playwright/element-web-test.ts
@@ -224,7 +224,7 @@ export const test = base.extend<{
},
axe: async ({ page }, use) => {
- await use(new AxeBuilder({ page }).exclude("[id^='floating-ui-']"));
+ await use(new AxeBuilder({ page }).exclude("[data-floating-ui-portal]"));
},
checkA11y: async ({ axe }, use, testInfo) =>
use(async () => {
diff --git a/playwright/pages/ElementAppPage.ts b/playwright/pages/ElementAppPage.ts
index 81c57cc6f7d..4cff3c72eac 100644
--- a/playwright/pages/ElementAppPage.ts
+++ b/playwright/pages/ElementAppPage.ts
@@ -188,6 +188,6 @@ export class ElementAppPage {
"Element has no aria-labelledby or aria-describedy attributes! The tooltip should have added either one of these.",
);
}
- return this.page.locator(`#${labelledById ?? describedById}`);
+ return this.page.locator(`id=${labelledById ?? describedById}`);
}
}
diff --git a/test/unit-tests/components/views/dialogs/__snapshots__/MessageEditHistoryDialog-test.tsx.snap b/test/unit-tests/components/views/dialogs/__snapshots__/MessageEditHistoryDialog-test.tsx.snap
index 2bf4f9a705d..5f926ff703e 100644
--- a/test/unit-tests/components/views/dialogs/__snapshots__/MessageEditHistoryDialog-test.tsx.snap
+++ b/test/unit-tests/components/views/dialogs/__snapshots__/MessageEditHistoryDialog-test.tsx.snap
@@ -102,7 +102,6 @@ exports[`