Skip to content

Commit ffa08cf

Browse files
committed
Revise Playwright test locator
1 parent d34fc7a commit ffa08cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/demo.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ test("has input set correctly", async ({ page }) => {
44
await page.goto("/demo/index.html");
55

66
await expect(
7-
page.locator("cambria-document").first().getByLabel("root[name]"),
7+
page.locator("cambria-document").first().getByRole('textbox', { name: 'root[name]' })
88
).toHaveValue(/The Fifth Element/);
99
});

0 commit comments

Comments
 (0)