Skip to content

Commit

Permalink
Make session timeout test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Wnt committed Oct 17, 2024
1 parent ebeceb3 commit f2d0f6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/e2e-test/specs/0_citizen/citizen-auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ describe('Citizen authentication', () => {
await page.page.setExtraHTTPHeaders({
'X-Session-TTL': '500'
})
await enduserLoginWeak(page, account)
await enduserLogin(page, testAdult)
// Main menu should be visible as we are logged-in
await page.findByDataQa('sub-nav-menu-desktop').waitUntilVisible()
await page.page.waitForTimeout(1000)
await page.page.reload()
await page.findByDataQa('weak-login').waitUntilVisible()
await page.findByDataQa('strong-login').waitUntilVisible()
// Main menu should not be visible as we are logged-out
await page.findByDataQa('sub-nav-menu-desktop').waitUntilHidden()
})
})
})

0 comments on commit f2d0f6b

Please sign in to comment.