Skip to content

Commit

Permalink
fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Nov 25, 2024
1 parent 044a596 commit ed6a10e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/containers/Organization/Onboarding/Form.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ test('it should submit the form', async () => {
});

fireEvent.click(screen.getByText('I Agree'));
fireEvent.click(checkboxes[1]);

fireEvent.click(getByTestId('submitActionButton'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export const FormLayout = ({
variant="outlined"
color="primary"
onClick={() => {
const payload = setPayload(formik.values);
saveData(payload, identifier);
const values = setPayload(formik.values);
saveData(values, identifier);
handleStepChange(false);
}}
className={styles.Button}
Expand Down

0 comments on commit ed6a10e

Please sign in to comment.