fix(frontend): Filter setup
This commit is contained in:
parent
3dc9b7aa0b
commit
aa2441e7db
1 changed files with 10 additions and 2 deletions
|
@ -1,8 +1,16 @@
|
|||
import { test, expect } from "./fixtures.js";
|
||||
import { test, expect } from "@playwright/test"
|
||||
|
||||
test("Users can filter", async ({ page }) => {
|
||||
await page.goto("/user");
|
||||
await page.goto("/")
|
||||
|
||||
// Login
|
||||
await page.getByRole("link", { name: "log in" }).click();
|
||||
await page.getByRole("button", { name: "teacher" }).click();
|
||||
await page.getByRole("textbox", { name: "Username or email" }).fill("testleerkracht1");
|
||||
await page.getByRole("textbox", { name: "Password" }).fill("password");
|
||||
await page.getByRole("button", { name: "Sign In" }).click();
|
||||
|
||||
// Filter
|
||||
await page.getByRole("combobox").filter({ hasText: "Select a themeAll" }).locator("i").click();
|
||||
await page.getByText("Nature and climate").click();
|
||||
await page.getByRole("combobox").filter({ hasText: "Select ageAll agesSelect age" }).locator("i").click();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue