Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Assert exact Tasks counts in the partner Overview e2e

Kiran K0d08b01373fb
diff --git a/apps/web/playwright/partners/overview.spec.ts b/apps/web/playwright/partners/overview.spec.ts
index 93bb2f5b83..05993e7dec 100644
--- a/apps/web/playwright/partners/overview.spec.ts
+++ b/apps/web/playwright/partners/overview.spec.ts
@@ -71,8 +71,8 @@ test.describe("Partner All programs Overview", () => {
});
await expect(tasks).toBeVisible();
- await expect(invitationsTask).toContainText("1");
- await expect(messagesTask).toContainText("0");
+ await expect(invitationsTask).toHaveText(/^Review new invitations\s*1$/);
+ await expect(messagesTask).toHaveText(/^Respond to programs\s*0$/);
await page.setViewportSize(MOBILE_VIEWPORT);
await expect(tasks).toBeVisible();
@@ -103,8 +103,8 @@ test.describe("Partner All programs Overview", () => {
await page.setViewportSize(DESKTOP_VIEWPORT);
await expect(tasks).toBeVisible();
- await expect(invitationsTask).toContainText("0");
- await expect(messagesTask).toContainText("0");
+ await expect(invitationsTask).toHaveText(/^Review new invitations\s*0$/);
+ await expect(messagesTask).toHaveText(/^Respond to programs\s*0$/);
} finally {
if (userId) await prisma.user.delete({ where: { id: userId } });
await deletePartner(partnerId);