test(login.spec.ts): add test case to check if clicking on "Community Examples" button displays the community pages flows panel

This commit is contained in:
anovazzi1 2023-09-20 20:49:07 -03:00
commit 21605d09ba

View file

@ -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();
});
});