Skip to content

Fix loginAs in browser tests and the token of authentication_succeeded

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 09:11
Immutable release. Only release title and notes can be modified.

10.1.1 (2026-11-19)

Bug Fixes

  • await session and cookie writes in browser client loginAs (#270) (356aede), closes #269
  • emit the recycled remember-me token with authentication_succeeded (#272) (0cf5576), closes #271

browserContext.loginAs() of the Japa browser client now waits for the session and the cookies to be written. Before, await loginAs(user) could resolve before the user was logged in. When the test ended first, the run could exit with code 1 even when each test passed.

When the session guard logs a user in with a remember-me token, the session_auth:authentication_succeeded event now gives the new token. Before, it gave the token that the guard had just deleted.

What's Changed

  • fix: await session and cookie writes in browser client loginAs by @tp-abtion in #270
  • fix: emit the recycled remember-me token with authentication_succeeded by @0xmamoud in #272

New Contributors

Full Changelog: v10.1.0...v10.1.1