Skip to content
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

Merged
merged 5 commits into from
Feb 26, 2024

Conversation

Princesseuh
Copy link
Member

Changes

Just making sure our handler to close on page clicks works in all our apps

Testing

Added a test

Docs

N/A

Copy link

changeset-bot bot commented Feb 23, 2024

🦋 Changeset detected

Latest 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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Feb 23, 2024
@github-actions github-actions bot added the 🚨 action Modifies GitHub Actions label Feb 23, 2024
Comment on lines +72 to +74
toolbar = page.locator('astro-dev-toolbar');
appButton = toolbar.locator('button[data-app-id="astro:home"]');
await appButton.click();
Copy link
Member Author

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 🤔

Copy link
Member

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();
Copy link
Member Author

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.

@ematipico ematipico merged commit 1eadb1c into main Feb 26, 2024
13 checks passed
@ematipico ematipico deleted the fix/close-windows branch February 26, 2024 13:38
@astrobot-houston astrobot-houston mentioned this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 action Modifies GitHub Actions pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants