diff --git a/apps/potlock/widget/Pots/Card.jsx b/apps/potlock/widget/Pots/Card.jsx index ecb12e2..d60f7c9 100644 --- a/apps/potlock/widget/Pots/Card.jsx +++ b/apps/potlock/widget/Pots/Card.jsx @@ -260,10 +260,10 @@ const Tag = (props) => ( return ( - + {title} @@ -276,7 +276,8 @@ return ( borderTop: "1px #7B7B7B solid", marginTop: "auto", height: "fit-content", - }}> + }} + > <div> {amountNear} @@ -284,8 +285,8 @@ return ( <span className="text">in pot</span> </div> - {tags.filter(tag => tag.visibility).map(tag => )} + {tags.map((tag) => (tag.visibility ? : ""))} - ); +); \ No newline at end of file diff --git a/playwright-tests/tests/pots.spec.js b/playwright-tests/tests/pots.spec.js index cf6804b..357d134 100644 --- a/playwright-tests/tests/pots.spec.js +++ b/playwright-tests/tests/pots.spec.js @@ -57,7 +57,7 @@ test("should show active pots", async ({ page }) => { const activePots = page.locator('[data-testid="active-pot"]'); - await activePots.first().waitFor({ timeout: 60000 }); + await activePots.first().waitFor(); const count = await activePots.count(); for (let i = 0; i < count; i++) { @@ -69,13 +69,13 @@ test("should show active pots", async ({ page }) => { test("should show completed pots", async ({ page }) => { await page.goto(`${ROOT_SRC}?tab=pots`); - const completedPots = page.locator('[data-testid="complete-pot"]'); + const completedPots = page.locator('[data-testid="inactive-pot"]'); - await completedPots.first().waitFor({ timeout: 60000 }); + await completedPots.first().waitFor(); - const count = await activePots.count(); + const count = await completedPots.count(); for (let i = 0; i < count; i++) { - await expect(activePots.nth(i)).toBeVisible(); + await expect(completedPots.nth(i)).toBeVisible(); } });