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: Duplicate #3396
feat: Duplicate #3396
Conversation
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 is amazing. Great job dude!
@@ -19,6 +20,8 @@ const ConfirmationModal = ({ | |||
okText = 'Delete', | |||
cancelText = 'Cancel', | |||
}: IProps) => { | |||
useKeyEvent([Keys.Enter], onConfirm); |
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.
🚀
@@ -43,8 +43,7 @@ export const useCreateTestSuite = () => useContext(Context); | |||
|
|||
const CreateTestSuiteProvider = ({children}: IProps) => { | |||
const dispatch = useAppDispatch(); | |||
const [create, {isLoading: isLoadingCreate}] = useCreateTestSuiteMutation(); | |||
const {runTestSuite, isEditLoading} = useTestSuiteCrud(); |
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.
let's delete the {useCreateTestSuiteMutation} = TracetestAPI.instance;
line
This PR adds the duplicate action for tests and test suites, it triggers the confirmation modal before doing the actual duplication
Changes
Fixes
Checklist
Loom video
https://www.loom.com/share/6594163f31b24f0388d9d1a21669fc4c