-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(toolbar): Make it so every built-in app can be closed by outside clicks #10220
Conversation
🦋 Changeset detectedLatest commit: 088fe25 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
toolbar = page.locator('astro-dev-toolbar'); | ||
appButton = toolbar.locator('button[data-app-id="astro:home"]'); | ||
await appButton.click(); |
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.
This test actually didn't work, I'm not sure how it passed before, but it shouldn't have 🤔
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.
Caching?
|
||
// If we have integration data, rebuild that part of the UI as well | ||
// as it probably mean that the user had already open the app in this session (ex: view transitions) | ||
if (integrationData) refreshIntegrationList(); |
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.
Moved this here because previously it'd refetch on every page load when using view transitions, we only want to fetch this once.
Changes
Just making sure our handler to close on page clicks works in all our apps
Testing
Added a test
Docs
N/A