Skip to content

Commit

Permalink
chore: test case refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rakeshsh committed Sep 17, 2024
1 parent 03d1ba4 commit dfef144
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ describe('dialog interaction', () => {
propsStub.isOpen = true;
propsStub.userConfigurationStoreData.showSaveAssessmentDialog = false;
wrapper = render(<SaveAssessmentDialog {...propsStub} />);
const gotItButtonProps = getMockComponentClassPropsForCall(PrimaryButton);
gotItButtonProps.onClick();
});

it('dialog is hidden (dismissed) when "got it" button is clicked', () => {
const gotItButtonProps = getMockComponentClassPropsForCall(PrimaryButton);
gotItButtonProps.onClick();
expect(onCloseMock).toHaveBeenCalled();
});

Expand Down

0 comments on commit dfef144

Please sign in to comment.