Skip to content

Commit cbf21b1

Browse files
committed
refactor(tests): use id selectors for confirm form
1 parent 71276be commit cbf21b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/playwright/qa/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def __init__(self, page: Page):
6363

6464
def submit_form(self, sub, name):
6565
page = self.page
66-
page.get_by_placeholder("12345").click()
66+
page.locator("#sub").click()
6767

68-
page.get_by_placeholder("12345").fill(sub)
68+
page.locator("#sub").fill(sub)
6969
page.keyboard.press("Tab")
7070

71-
page.get_by_placeholder("Hernandez-Demarcos").fill(name)
71+
page.locator("#name").fill(name)
7272

7373
page.get_by_role("button", name="Find my record").click()
7474

0 commit comments

Comments
 (0)