Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Aug 19, 2024
1 parent 1e6aee4 commit c32f3dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions system-tests/src/tests/grade-exams-manually.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { BrowserContext, expect, test } from "@playwright/test"

import { scrollLocatorsParentIframeToViewIfNeeded } from "@/utils/iframeLocators"

test.use({
storageState: "src/states/[email protected]",
})
Expand Down Expand Up @@ -45,6 +47,11 @@ test("Grade exams manually", async ({}) => {
.getByRole("button", { name: "Submit" })
.click()
await student1Page.getByRole("button", { name: "Try again" }).waitFor()
await scrollLocatorsParentIframeToViewIfNeeded(
student1Page
.frameLocator('iframe[title="Exercise 1\\, task 1 content"]')
.getByRole("checkbox", { name: "b" }),
)
await student1Page
.frameLocator('iframe[title="Exercise 1\\, task 1 content"]')
.getByRole("checkbox", { name: "b" })
Expand Down

0 comments on commit c32f3dc

Please sign in to comment.