Modify test to check input value instead of button visibility

This commit is contained in:
2026-04-03 01:29:15 +02:00
parent 39ee96f3e3
commit 822105a215

View File

@@ -69,7 +69,7 @@ test("user can create a box brush and keep it through a draft reload", async ({
await page.getByTestId("brush-size-z").press("Tab");
await page.getByTestId("selected-brush-name").fill("Entry Room");
await page.getByTestId("selected-brush-name").press("Tab");
await expect(page.getByRole("button", { name: /^Entry Room$/ })).toBeVisible();
await expect(page.getByTestId("selected-brush-name")).toHaveValue("Entry Room");
await page.getByRole("button", { name: "Save Draft" }).click();
await page.reload();