test: use toHaveCount instead of count()).toBe
This commit is contained in:
@@ -77,13 +77,13 @@ mobileTest(
|
|||||||
await expect(
|
await expect(
|
||||||
guestPage.getByTestId("roomHeader_participants_count"),
|
guestPage.getByTestId("roomHeader_participants_count"),
|
||||||
).toContainText("2");
|
).toContainText("2");
|
||||||
expect(await guestPage.getByTestId("videoTile").count()).toBe(2);
|
await expect(guestPage.getByTestId("videoTile")).toHaveCount(2);
|
||||||
|
|
||||||
// Same in creator page
|
// Same in creator page
|
||||||
await expect(
|
await expect(
|
||||||
creatorPage.getByTestId("roomHeader_participants_count"),
|
creatorPage.getByTestId("roomHeader_participants_count"),
|
||||||
).toContainText("2");
|
).toContainText("2");
|
||||||
expect(await creatorPage.getByTestId("videoTile").count()).toBe(2);
|
await expect(creatorPage.getByTestId("videoTile")).toHaveCount(2);
|
||||||
|
|
||||||
// TEST: control audio devices from the invitee page
|
// TEST: control audio devices from the invitee page
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user