From 2928e34ee296cbebe51fe9a125cae47c764294a4 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 28 May 2026 11:56:29 +0200 Subject: [PATCH] test: use toHaveCount instead of count()).toBe --- playwright/mobile/create-call-mobile.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/mobile/create-call-mobile.spec.ts b/playwright/mobile/create-call-mobile.spec.ts index 1d9d3af0..f07793f7 100644 --- a/playwright/mobile/create-call-mobile.spec.ts +++ b/playwright/mobile/create-call-mobile.spec.ts @@ -77,13 +77,13 @@ mobileTest( await expect( guestPage.getByTestId("roomHeader_participants_count"), ).toContainText("2"); - expect(await guestPage.getByTestId("videoTile").count()).toBe(2); + await expect(guestPage.getByTestId("videoTile")).toHaveCount(2); // Same in creator page await expect( creatorPage.getByTestId("roomHeader_participants_count"), ).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