Skip to content

Commit d452a06

Browse files
committed
Deleted test_example, fixed two other tests
1 parent 90869dd commit d452a06

3 files changed

Lines changed: 3 additions & 17 deletions

File tree

e2e_tests/test_example.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e_tests/test_submissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_submission_count(page: Page):
99
page.goto("http://localhost:8000/?hl=en")
1010
login(page, "student", "student")
1111
navigate_to_default_course(page)
12-
page.get_by_role("link", name="5.2 Question groups").click()
12+
page.get_by_role("link", name="5.2 Question groups").first.click()
1313

1414
#fill in an answer 11 times for exercise 5.2.1
1515
exercise = page.locator("#chapter-exercise-1")

e2e_tests/test_text_exercise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_should_not_accept_empty_submission(page: Page):
99
page.goto("http://localhost:8000/?hl=en")
1010
login(page, "student", "student")
1111
navigate_to_default_course(page)
12-
page.get_by_role("link", name="5.1 Creating questionnaire exercises").click()
12+
page.get_by_role("link", name="5.1 Creating questionnaire exercises").first.click()
1313

1414
#fill in an empty answer for exercise 5.1.2
1515
exercise = page.locator("#chapter-exercise-2")
@@ -34,7 +34,7 @@ def test_should_give_zero_points_on_false_submission(page: Page):
3434
page.goto("http://localhost:8000/?hl=en")
3535
login(page, "student", "student")
3636
navigate_to_default_course(page)
37-
page.get_by_role("link", name="5.1 Creating questionnaire exercises").click()
37+
page.get_by_role("link", name="5.1 Creating questionnaire exercises").first.click()
3838

3939
#fill in an false answer for exercise 5.1.2
4040
exercise = page.locator("#chapter-exercise-2")

0 commit comments

Comments
 (0)