Skip to content

Commit

Permalink
test: wait for page reload to verify session id change
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Feb 25, 2024
1 parent 6467402 commit 6df1ca1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public void should_HaveANewSessionId_when_NavigationAfterSessionExpired() {
navigateToSesssionExpireView();
// expired session causes page reload, after the page reload there will
// be a new session
Assert.assertNotEquals(sessionId, getSessionId());
String currentSessionId = sessionId;
waitUntil(d -> !currentSessionId.equals(getSessionId()));
//Assert.assertNotEquals(sessionId, getSessionId());
sessionId = getSessionId();
navigateToAnotherView();
// session is preserved
Expand Down

0 comments on commit 6df1ca1

Please sign in to comment.