-
Notifications
You must be signed in to change notification settings - Fork 427
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(core): update intent link for releases tool #7468
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
return Boolean(intent === 'release' && params.slug) | ||
canHandleIntent: (intent) => { | ||
// If intent is release, open the releases tool. | ||
return Boolean(intent === 'release') |
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.
Instead of not resolving the intent if the params are missing, resolve to the tool at root level.
e877986
to
b99fbdc
Compare
Component Testing Report Updated Sep 5, 2024 6:55 AM (UTC) ✅ All Tests Passed -- expand for details
|
fcccaa2
to
dc3400c
Compare
expect(screen.queryByTestId('button-document-release')).toBeNull() | ||
}) | ||
|
||
it('should navigate to the release intent when the bundle badge is clicked', async () => { |
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 doesn't apply anymore, because we are not rendering a button, we are now rendering a <a>
That's also the reason why instead of using a getByTestId
getter for the button we are now using a getByRole("link")
getter in this tests
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.
Great job ✅
* fix(core): update intent link for releases tool * chore(core): rename releases tool bundleId param to releaseId * chore(core): update DocumentPerspectiveMenu test
* fix(core): update intent link for releases tool * chore(core): rename releases tool bundleId param to releaseId * chore(core): update DocumentPerspectiveMenu test
* fix(core): update intent link for releases tool * chore(core): rename releases tool bundleId param to releaseId * chore(core): update DocumentPerspectiveMenu test
Description
Fixes an issue with intent link in which the intent was not resolved correctly.
It also replaces the for a component, which will allow users to cmd + click to open in new tab.
Updates the
bundleId
param in the releases tool router forreleaseId
What to review
Are the changes correct?
Testing
Existing tests have been updated to reflect the change.
Notes for release
n/a