From 81daa6581f5b87fe5ab4455db4f49430b8b5d01d Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Fri, 24 Jan 2025 00:08:47 +0530 Subject: [PATCH] fix: checkly tests (#18842) * fix: flaky test organization.spec * fix: chckly tests --- __checks__/organization.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/__checks__/organization.spec.ts b/__checks__/organization.spec.ts index 62b85b5a85..723c580ddb 100644 --- a/__checks__/organization.spec.ts +++ b/__checks__/organization.spec.ts @@ -14,7 +14,7 @@ test.describe("Org", () => { test("Org User(Rick) Page should be embeddable", async ({ page }) => { const response = await page.goto("https://i.cal.com/team-rick/embed"); expect(response?.status()).toBe(200); - await expect(page.locator("text=Rick in i.cal.com")).toBeVisible(); + await expect(page.locator("text=Used by Checkly")).toBeVisible(); await expectPageToBeRenderedWithEmbedSsr(page); }); @@ -58,10 +58,10 @@ test.describe("Org", () => { expect(response?.status()).toBe(200); expect(await page.locator('[data-testid="event-title"]').textContent()).toBe("Group Meeting"); - expect(await page.locator('[data-testid="event-meta"]').textContent()).toContain(users[0].name); - expect(await page.locator('[data-testid="event-meta"]').textContent()).toContain(users[1].name); - // 2 users and 1 for the organization(2+1) - expect((await page.locator('[data-testid="event-meta"] [data-testid="avatar"]').all()).length).toBe(3); + expect(await page.locator('[data-testid="event-meta"]').textContent()).toContain( + "Join us for a meeting with multiple people" + ); + expect((await page.locator('[data-testid="event-meta"] [data-testid="avatar"]').all()).length).toBe(2); }); });