mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-01 09:54:37 +00:00
review: use role locator instead of testID
This commit is contained in:
@@ -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();
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user