Skip to content

Keep noWelcome on in e2e after in-app navigation - #1446

Merged
microbit-matt-hillsdon merged 1 commit into
home-pagefrom
fix-whats-new-e2e
Nov 23, 2026
Merged

microbit-matt-hillsdon merged 1 commit into
home-pagefrom
fix-whats-new-e2e

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Collaborator

Fixes the e2e failure on home-page after #1445: "keeps projects across a reload" saw What's new on the REVIEW stage.

The noWelcome flag was only in the e2e URL's flag params, which in-app links drop. A reload after following one, e.g. the breadcrumb back to Home, loaded the app without it, and noWelcome is only on by default for the local stage.

The fixture now sets noWelcome in localStorage, which flags.ts already reads, so it survives navigation and reloads. Tests that want the first-visit dialogs use test.use({ welcome: true }), which replaces the URL option added in #1445.

The flag was only in the URL, which in-app links drop, so a reload
after following one showed What's new on stages where noWelcome is
off by default. Set it in localStorage from the fixture instead, with
an option for the test that wants the dialog.
@github-actions

Copy link
Copy Markdown

Preview build will be at
https://review-python.microbit.org/fix-whats-new-e2e/

@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit f7d5794 into home-page Nov 23, 2026
4 checks passed
@microbit-matt-hillsdon
microbit-matt-hillsdon deleted the fix-whats-new-e2e branch November 23, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant