Skip to content

test(e2e): Fix broken e2e tests [WPB-22420]#20749

Merged
thisisamir98 merged 3 commits intorelease/2026-03-23from
fix-tests-
Mar 18, 2026
Merged

test(e2e): Fix broken e2e tests [WPB-22420]#20749
thisisamir98 merged 3 commits intorelease/2026-03-23from
fix-tests-

Conversation

@thisisamir98
Copy link
Collaborator

@thisisamir98 thisisamir98 commented Mar 18, 2026

TaskWPB-22420 [Web] General maintenance ticket for PR merges

  • fix(webapp): initialize app lock crypto limits after libsodium is ready
  • test(e2e): stabilize TC-8639 app lock setup flow]
  • test(e2e): handle optional history info on auth re-login

The AppLock regression came from the crypto adapter reading
crypto_pwhash_OPSLIMIT_INTERACTIVE and
crypto_pwhash_MEMLIMIT_INTERACTIVE before libsodium.ready resolved.

That left both values undefined at runtime, so setting an app lock passcode failed with:
TypeError: opsLimit cannot be null or undefined

This change makes the adapter read the libsodium limits lazily after initialization, restoring app lock passcode setup and keeping the recent AppLockRepository refactor intact.
Wait for the app lock setup modal to fully close after submitting the passcode before continuing with sidebar interactions. This removes a CI race where the modal still intercepted clicks on the All conversations tab, causing TC-8639 to fail intermittently.
Add an optional history-info confirmation helper and use it in authentication re-login flows where the screen may be skipped after logging out of a temporary/public session. This fixes CI timeouts caused by waiting for the do-history-confirm button when the app correctly navigates past the history-info route.
@thisisamir98 thisisamir98 changed the title test(e2e): Fix broken e2e tests test(e2e): Fix broken e2e tests [WPB-22420] Mar 18, 2026
@sonarqubecloud
Copy link

@thisisamir98 thisisamir98 enabled auto-merge March 18, 2026 17:19
@thisisamir98 thisisamir98 merged commit 7b35b5c into release/2026-03-23 Mar 18, 2026
18 of 19 checks passed
@thisisamir98 thisisamir98 deleted the fix-tests- branch March 18, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants