mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +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
|
await alice.page
|
||||||
.locator('iframe[title="Element Call"]')
|
.locator('iframe[title="Element Call"]')
|
||||||
.contentFrame()
|
.contentFrame()
|
||||||
.getByTestId("incall_screenshare")
|
.getByRole("switch", { name: "Share screen" })
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
// await alice.page.pause();
|
// await alice.page.pause();
|
||||||
@@ -102,7 +102,7 @@ widgetTest("Sharing screen in group call", async ({ addUser, browserName }) => {
|
|||||||
await bob.page
|
await bob.page
|
||||||
.locator('iframe[title="Element Call"]')
|
.locator('iframe[title="Element Call"]')
|
||||||
.contentFrame()
|
.contentFrame()
|
||||||
.getByTestId("incall_screenshare")
|
.getByRole("switch", { name: "Share screen" })
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user