Skip to content

Commit

Permalink
#106 time adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikgeissler committed Sep 26, 2023
1 parent 2fdc436 commit a565e7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions tests/pupil-form.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ test(`pupil signup form can be submitted after filling all required fields`, asy

await page.click(`#dataProtection`)

await page.click(`button[type=submit].main`)
await page.click(`button[type=submit].main`, {
timeout: 10000
})

await page.waitForNavigation()

// make sure we get to the success page
expect(await page.locator(`text=🎉 ⭐ 🎉`, { timeout: 20000 }).textContent()).toBe(`🎉 ⭐ 🎉`)
expect(await page.locator(`text=🎉 ⭐ 🎉`, { timeout: 10000 }).textContent()).toBe(`🎉 ⭐ 🎉`)
})
8 changes: 6 additions & 2 deletions tests/student-form.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ test(`student signup form can be submitted after filling all required fields`, a

await page.click(`#dataProtection`)

await page.click(`button[type=submit].main`)
await page.click(`button[type=submit].main`, {
timeout: 10000
})

await page.waitForNavigation()

// make sure we get to the success page
expect(await page.locator(`text=🎉 ⭐ 🎉`, { timeout: 20000 }).textContent()).toBe(`🎉 ⭐ 🎉`)
expect(await page.locator(`text=🎉 ⭐ 🎉`, { timeout: 10000 }).textContent()).toBe(`🎉 ⭐ 🎉`)
})

0 comments on commit a565e7c

Please sign in to comment.