Skip to content

Commit

Permalink
Add more test case for empty name and description
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Sep 26, 2024
1 parent 630a68d commit f6b31eb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,10 @@ describe('WorkspaceBottomBar', () => {
const saveChangesButton = screen.getByText('Save changes');
expect(saveChangesButton.closest('button')).not.toBeDisabled();
});

it('should enable the "Save changes" button when name and description are empty', () => {
render(<WorkspaceBottomBar {...defaultProps} formData={{}} />);
const saveChangesButton = screen.getByText('Save changes');
expect(saveChangesButton.closest('button')).not.toBeDisabled();
});
});

0 comments on commit f6b31eb

Please sign in to comment.