Skip to content

Commit cfb4d82

Browse files
jensjvhihalaij1
authored andcommitted
Fix failing playwright tests
1 parent 253dd24 commit cfb4d82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

e2e_tests/test_compare_submissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def assert_line(filename: str, line_number: int, text: str, color: str):
6363
page.get_by_placeholder("Staff feedback").fill(ASSISTANT_FEEDBACK_TEXT)
6464
page.get_by_role("button", name="Grader feedback").click()
6565
page.get_by_placeholder("Grader feedback").fill(FEEDBACK_TEXT)
66-
page.get_by_label("Points").fill(POINTS)
66+
page.get_by_placeholder("Points").fill(POINTS)
6767
page.get_by_role("button", name="Submit").click()
6868
expect(page.locator('.site-message')).to_contain_text(
6969
"The review was saved successfully and the submitters were notified.")

e2e_tests/test_points_goal_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ def test_points_goal_reached(page: Page) -> None:
3939
page.get_by_role("button", name="Save").click()
4040
expect(page.locator("#success-alert")).to_contain_text("Succesfully set personalized points goal")
4141
page.get_by_role("button", name="Close", exact=True).click()
42-
progress_bar_locator = page.locator("#progress-questionnaires > .progress > .aplus-progress-bar")
42+
progress_bar_locator = page.locator("#progress-questionnaires .progress > .aplus-progress-bar")
4343
expect(progress_bar_locator).\
4444
to_have_class("aplus-progress-bar aplus-progress-bar-striped aplus-progress-bar-primary")

0 commit comments

Comments
 (0)