Skip to content

Commit

Permalink
Test update
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Aug 15, 2024
1 parent 183a116 commit 1e6aee4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system-tests/src/tests/grade-exams-manually.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ test("Grade exams manually", async ({}) => {
.getByLabel("Exercise:Multiple choice with")
.getByRole("button", { name: "Submit" })
.click()
await student1Page.getByRole("button", { name: "Try again" }).waitFor()
await student1Page
.frameLocator('iframe[title="Exercise 1\\, task 1 content"]')
.getByRole("checkbox", { name: "b" })
.click()

Check failure on line 51 in system-tests/src/tests/grade-exams-manually.spec.ts

View workflow job for this annotation

GitHub Actions / system-tests (1)

[chromium] › grade-exams-manually.spec.ts:23:5 › Grade exams manually

2) [chromium] › grade-exams-manually.spec.ts:23:5 › Grade exams manually ───────────────────────── TimeoutError: locator.click: Timeout 15000ms exceeded. Call log: - waiting for frameLocator('iframe[title="Exercise 1\\, task 1 content"]').getByRole('checkbox', { name: 'b' }) - locator resolved to <button role="checkbox" class="css-lvdikn" aria-checked=…>b</button> - attempting click action - waiting for element to be visible, enabled and stable 49 | .frameLocator('iframe[title="Exercise 1\\, task 1 content"]') 50 | .getByRole("checkbox", { name: "b" }) > 51 | .click() | ^ 52 | await student1Page.getByRole("button", { name: "Submit" }).click() 53 | await student1Page.getByRole("button", { name: "Try again" }).nth(1).waitFor() 54 | at /home/runner/work/secret-project-331/secret-project-331/system-tests/src/tests/grade-exams-manually.spec.ts:51:6
await student1Page.getByRole("button", { name: "Submit" }).click()
await student1Page.getByRole("button", { name: "Try again" }).nth(1).waitFor()

student1Page.once("dialog", (dialog) => {
dialog.accept()
Expand All @@ -74,11 +76,13 @@ test("Grade exams manually", async ({}) => {
.getByLabel("Exercise:Multiple choice with")
.getByRole("button", { name: "Submit" })
.click()
await student2Page.getByRole("button", { name: "Try again" }).waitFor()
await student2Page
.frameLocator('iframe[title="Exercise 1\\, task 1 content"]')
.getByRole("checkbox", { name: "b" })
.click()
await student2Page.getByRole("button", { name: "Submit" }).click()
await student2Page.getByRole("button", { name: "Try again" }).nth(1).waitFor()

student2Page.once("dialog", (dialog) => {
dialog.accept()
Expand Down

0 comments on commit 1e6aee4

Please sign in to comment.