Skip to content

Commit 3d202c1

Browse files
author
Obada Haddad
committed
rebase branch and fix playwright tests
1 parent 058b81e commit 3d202c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_competition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_manual_competition_creation(page: Page):
9797
page.get_by_role("application").filter(has_text="|||xxxxxxxxxx 101:").get_by_role(
9898
"textbox"
9999
).fill("Test Terms")
100-
page.locator('input[name="registration_auto_approve"]').check()
100+
page.get_by_text("Auto approve registration").click()
101101
page.locator("a").filter(has_text="Pages").click()
102102
page.get_by_role("button", name=" Add page").click()
103103
page.get_by_role("textbox").nth(1).fill("Test Title")
@@ -123,8 +123,8 @@ def test_manual_competition_creation(page: Page):
123123
page.locator(
124124
".CodeMirror.cm-s-easymde.CodeMirror-wrap.CodeMirror-focused > div > textarea"
125125
).fill("This is a phase Test")
126-
page.locator(".ui.search.selection.dropdown.multiple").first.click()
127-
page.locator(".ui.search.selection.dropdown.multiple > .search").first.fill(
126+
page.locator("#tasks_select_container > .ui").click()
127+
page.locator("#tasks_select_container > .ui > .search").fill(
128128
str(titleNum) + "Playwright Task"
129129
)
130130
page.get_by_text(str(titleNum) + "Playwright Task").nth(1).click()

0 commit comments

Comments
 (0)