Skip to content

v0.30.0 — a login's session reaches the tests whole

Choose a tag to compare

@hamc hamc released this 31 Oct 05:37
· 19 commits to main since this release
c60f6d3

Minor: a login journey's session now carries IndexedDB and session storage, and auth.verify is
judged a second time where tests use the session. The impact report is reorganised; its exit code
and selection are unchanged.

Fixed

  • A login journey's session reaches the tests whole (#59).
    Only cookies and local storage were carried from the login to the tests, so an app that keeps its
    sign-in in IndexedDB or session storage was signed in for the login and signed out for every test.
    The session now includes IndexedDB and the session storage of the page the login ended on.
    Playwright's IndexedDB capture drops any key or value that is 0, '', false or null, which
    made a real app's state fail to restore at all; blastproof reads those back from the page and puts
    them in. With auth.verify, the sign-in is judged a second time in a new browser context holding
    only the captured session, and a session that does not survive capture stops the run with exit 2
    instead of failing every test on the login page. auth.cache keeps the session storage too.

Changed

  • The impact report says what is not covered, once (#39).
    --impacted listed seven near-synonyms as peers: affected, unclassified, ignored, unrouted,
    uncovered, skipped, not run. It now opens with one line, Not covered: …, counting unclassified
    files, routes no selected test covers and tests with no routes:, then reports changed files, the
    routes they reach and the tests, in that order, each gap marked where it is listed. The header
    names the base ref, and ignored files are named (the first three) rather than only counted.
    Output only: the exit code, the selection and every gate are unchanged.