-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(frontend): imperative transaction network guard #3988
base: main
Are you sure you want to change the base?
Conversation
…rd' into feat/imperative-transactions-guard
|
||
await homepageLoggedIn.waitForContentReady(); | ||
|
||
await expect(page).toHaveScreenshot({ fullPage: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think when we have more test cases like this one, we can create an additional method that validates which page is active without capturing a screenshot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Require #3989 to pass - i.e. CI will fail until related PR is merged. |
Motivation
With Svelte v5 #3949 we are not able to access the
/transactions
page because the$page
store is not initalized when the route is mounted. This happens because we guard the page for case where thenetwork
query param would not be set. To resolve the issue we can imperatively access the query parameter.Changes
URLSearchParams
instead of$page
to read thenetwork
param on mount.