review: use role locator instead of testID

This commit is contained in:
Valere
2026-04-17 17:29:35 +02:00
parent eeafd81d31
commit 8b4762fb29

View File

@@ -59,7 +59,7 @@ widgetTest("Sharing screen in group call", async ({ addUser, browserName }) => {
await alice.page
.locator('iframe[title="Element Call"]')
.contentFrame()
.getByTestId("incall_screenshare")
.getByRole("switch", { name: "Share screen" })
.click();
// await alice.page.pause();
@@ -102,7 +102,7 @@ widgetTest("Sharing screen in group call", async ({ addUser, browserName }) => {
await bob.page
.locator('iframe[title="Element Call"]')
.contentFrame()
.getByTestId("incall_screenshare")
.getByRole("switch", { name: "Share screen" })
.click();
{