-
Notifications
You must be signed in to change notification settings - Fork 19
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: add Edit Test link to dropdown #826
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Is it actually needed? I recall that there was discussion about having an option to edit test, but for a single run
const onEditTest = () => { | ||
onSettingsTabChange('test'); | ||
}; |
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.
const onEditTest = () => { | |
onSettingsTabChange('test'); | |
}; | |
const onEditTest = useLastCallback(() => { | |
onSettingsTabChange('test'); | |
}); |
or
const onEditTest = () => { | |
onSettingsTabChange('test'); | |
}; | |
const onEditTest = useCallback(() => { | |
onSettingsTabChange('test'); | |
}, [onSettingsTabChange]); |
@@ -154,7 +158,10 @@ const EntityDetailsContent: React.FC<EntityDetailsContentProps> = ({ | |||
/>, | |||
<DotsDropdown | |||
key="entity-options" | |||
items={[{key: 1, label: <span onClick={onAbortAllExecutionsClick}>Abort all executions</span>}]} | |||
items={[ | |||
{key: 1, label: <span onClick={onEditTest}>Edit Test</span>}, |
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.
Is it meant to be displayed for both Tests and Test Suites?
This PR...
Changes
Fixes
How to test it
screenshots
Checklist