test(people): fix tab nav timing and toast message expectations

This commit is contained in:
2026-06-26 02:16:37 +02:00
parent 9ab4804348
commit b662ee798e
+3 -2
View File
@@ -36,6 +36,7 @@ test.describe("people and teams", () => {
page,
}) => {
await signInAsAdmin(page, baseURL)
await page.goto("/people")
const sections = page.getByRole("navigation", { name: "People sections" })
await expect(sections).toBeVisible()
@@ -104,7 +105,7 @@ test.describe("people and teams", () => {
await page.getByLabel("Phone").fill("123456789")
await page.getByLabel("Role").selectOption("NO_USER")
await page.getByRole("button", { name: "Create User" }).click()
await expect(page.getByText("Person created successfully")).toBeVisible()
await expect(page.getByText("User created successfully")).toBeVisible()
await page.goto("/people?tab=people")
const row = page.getByRole("row", { name: new RegExp(personName) })
@@ -131,7 +132,7 @@ test.describe("people and teams", () => {
await page.getByLabel("Phone").fill("123456789")
await page.getByLabel("Role").selectOption("NO_USER")
await page.getByRole("button", { name: "Create User" }).click()
await expect(page.getByText("Person created successfully")).toBeVisible()
await expect(page.getByText("User created successfully")).toBeVisible()
await page.goto("/people?tab=people")
const row = page.getByRole("row", { name: new RegExp(personName) })