Skip to content

Commit 305ae7b

Browse files
committed
fix locator
1 parent fee733e commit 305ae7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

form-designer/tests/test_create_form.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def _url(url: str):
7777
page.get_by_role("combobox").click()
7878
page.get_by_label("select").click()
7979
page.get_by_role("button", name="Edit Options").click()
80-
page.get_by_role("button").first.click()
80+
submit_button = page.locator("button[type='submit']:has(svg)")
81+
submit_button.click()
8182
page.get_by_placeholder("Label").fill("Assuredly")
8283
page.get_by_placeholder("Assuredly").click()
8384
page.get_by_placeholder("Assuredly").fill("Yes")

0 commit comments

Comments
 (0)