Add SPA user journey tests for soft navigations - #2561
#2561Open
soulgalore wants to merge 2 commits into
Open
Add SPA user journey tests for soft navigations#2561soulgalore wants to merge 2 commits into
soulgalore wants to merge 2 commits into
Conversation
Browsertime recently learned to measure SPA soft navigations, including ones that never touch the network, but the CI coverage was two single-step scripts. Real SPA sessions are multi-step journeys that mix routes with requests, routes rendered entirely from memory, and the occasional full page load, and regressions in the HAR page pairing or the per-step soft navigation slicing only show up in those flows. This turns the SPA test page into a small multi-route app and adds three user journeys: one covering fetch, no-request and image routes, one mixing soft and hard navigations, and one with only zero-request navigations. The journeys wait with the page complete check instead of fixed sleeps, so they also exercise the SPA inactivity logic they are meant to protect. Firefox runs the multi-route journey too, asserting that journeys complete in browsers without the soft navigation API. Co-authored-by: Claude Fable 5 noreply@anthropic.com Change-Id: I81333ebc8478f6930d8dc906d839822e69e75c38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Browsertime recently learned to measure SPA soft navigations, including ones that never touch the network, but the CI coverage was two single-step scripts. Real SPA sessions are multi-step journeys that mix routes with requests, routes rendered entirely from memory, and the occasional full page load, and regressions in the HAR page pairing or the per-step soft navigation slicing only show up in those flows.
This turns the SPA test page into a small multi-route app and adds three user journeys: one covering fetch, no-request and image routes, one mixing soft and hard navigations, and one with only zero-request navigations. The journeys wait with the page complete check instead of fixed sleeps, so they also exercise the SPA inactivity logic they are meant to protect. Firefox runs the multi-route journey too, asserting that journeys complete in browsers without the soft navigation API.
Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I81333ebc8478f6930d8dc906d839822e69e75c38