fix: all flaky e2e tests (#20476)

* fix: all flaky e2e tests

* update

* Update basic.e2e.ts

* Update basic.e2e.ts

* update

* Update basic.e2e.ts

* update

* update

* push

* update

* final

* update

* fix
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-04-07 19:43:01 +00:00
1 parent 134086f229
commit 54d98e73a2
13 files changed
+51 -25

No files matched your search

@@ -64,11 +64,10 @@ test.describe("User Avatar", async () => {
);
// verify objectKey is passed to the OG image
// yes, OG image URI encodes at multiple places.. don't want to mess with that.
const ogImageLocator = page.locator('meta[property="og:image"]');
await expect(ogImageLocator).toHaveCount(1);
const searchParam = `meetingImage=${encodeURIComponent(`${CAL_URL}/api/avatar/${objectKey}.png`)}`;
await expect(page.locator('meta[property="og:image"]')).toHaveAttribute(
"content",
new RegExp(encodeURIComponent(searchParam))
);
await expect(ogImageLocator).toHaveAttribute("content", new RegExp(encodeURIComponent(searchParam)));
});
});
});