diff --git a/package.json b/package.json index fd31e1e..66968fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@awell_health/ui-library", - "version": "0.1.13", + "version": "0.1.15", "private": false, "description": "UI components to integrate with Awell Health", "repository": { @@ -187,4 +187,4 @@ }, "homepage": "https://github.com/awell-health/ui-library#readme", "_id": "@awell_health/ui-library@0.1.11" -} \ No newline at end of file +} diff --git a/src/hostedPages/activities/wizardForm/wizardForm.spec.tsx b/src/hostedPages/activities/wizardForm/wizardForm.spec.tsx index c754236..b0c8dd1 100644 --- a/src/hostedPages/activities/wizardForm/wizardForm.spec.tsx +++ b/src/hostedPages/activities/wizardForm/wizardForm.spec.tsx @@ -134,11 +134,15 @@ describe('Wizard form', () => { expect(radioOption).not.toBeChecked() await act(async () => { + // clicking on a select option moves to next question fireEvent.click(radioOption) }) expect(radioOption).toBeChecked() + // GO back to 2nd question + await clickPrevButton() + // GO back to 1st question await clickPrevButton() @@ -150,7 +154,7 @@ describe('Wizard form', () => { // Check if evaluate visibility conditions were called each time user // navigates to NEXT question + 1 on init await waitFor(() => - expect(evaluateDisplayConditions).toHaveBeenCalledTimes(3) + expect(evaluateDisplayConditions).toHaveBeenCalledTimes(5) ) }) @@ -176,10 +180,14 @@ describe('Wizard form', () => { ) expect(radioOption).not.toBeChecked() await act(async () => { + // clicking on a select option moves to next question fireEvent.click(radioOption) }) expect(radioOption).toBeChecked() + // GO back to 1st question + await clickPrevButton() + // Try going to 2nd question again await clickNextButton()