diff --git a/tests/e2e/box-brush-authoring.e2e.ts b/tests/e2e/box-brush-authoring.e2e.ts index 9ea6800f..b530ca90 100644 --- a/tests/e2e/box-brush-authoring.e2e.ts +++ b/tests/e2e/box-brush-authoring.e2e.ts @@ -21,13 +21,13 @@ test("user can create a box brush and keep it through a draft reload", async ({ await page.reload(); await page.getByTestId("create-box-brush").click(); - await expect(page.getByText("Box Brush 1")).toBeVisible(); + await expect(page.getByRole("button", { name: /Box Brush 1/ })).toBeVisible(); await expect(page.getByText("1 brush selected (Box Brush 1)")).toBeVisible(); await page.getByRole("button", { name: "Save Draft" }).click(); await page.reload(); - await expect(page.getByText("Box Brush 1")).toBeVisible(); + await expect(page.getByRole("button", { name: /Box Brush 1/ })).toBeVisible(); await expect(page.getByText("1 box brushes loaded. Click a brush in the viewport or outliner to select it.")).toBeVisible(); expect(pageErrors).toEqual([]);