From 21605d09ba5559d3beca8b5c86aec7fdbc9e0b67 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 20 Sep 2023 20:49:07 -0300 Subject: [PATCH] test(login.spec.ts): add test case to check if clicking on "Community Examples" button displays the community pages flows panel --- src/frontend/tests/login.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/tests/login.spec.ts b/src/frontend/tests/login.spec.ts index 9980e399e..cb70af46f 100644 --- a/src/frontend/tests/login.spec.ts +++ b/src/frontend/tests/login.spec.ts @@ -21,5 +21,12 @@ test.describe("Login Tests", () => { await page.getByPlaceholder("Password").click(); await page.getByPlaceholder("Password").fill("test"); await page.getByRole("button", { name: "Sign in" }).click(); + await page.getByRole("button", { name: "Community Examples" }).click(); + await page.waitForSelector(".community-pages-flows-panel"); + expect( + await page + .locator(".community-pages-flows-panel") + .evaluate((el) => el.children) + ).toBeTruthy(); }); });