Skip to content

Commit

Permalink
Show Completed Pots Test (#549)
Browse files Browse the repository at this point in the history
* make sure active pots are being shown on pot page

* Formated code with npm run fmt

* Complete Pot test

* finshed completed-pot test

* fmt

---------

Co-authored-by: Spandan Datta <[email protected]>
Co-authored-by: Elliot Braem <[email protected]>
  • Loading branch information
3 people authored May 19, 2024
1 parent cdd634d commit 4e938ec
Show file tree
Hide file tree
Showing 2 changed files with 1,690 additions and 1 deletion.
11 changes: 10 additions & 1 deletion playwright-tests/tests/pots.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ test("should show active pots", async ({ page }) => {
});

test("should show completed pots", async ({ page }) => {
// TODO:
await page.goto(`${ROOT_SRC}?tab=pots`);

const completedPots = page.locator('[data-testid="inactive-pot"]');

await completedPots.first().waitFor();

const count = await completedPots.count();
for (let i = 0; i < count; i++) {
await expect(completedPots.nth(i)).toBeVisible();
}
});

test("should sort pots", async ({ page }) => {
Expand Down
Loading

0 comments on commit 4e938ec

Please sign in to comment.