Skip to content

Commit

Permalink
(test) Fix yet more flakiness in the Clinical Forms E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Aug 13, 2024
1 parent 666539f commit 1d1e39c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/specs/clinical-forms.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('Fill a clinical form', async ({ page }) => {
});

await test.step('When I fill the `Subjective findings` question', async () => {
await page.getByLabel(/subjective Findings/i).fill(subjectiveFindings);
await page.getByLabel(/subjective findings/i).fill(subjectiveFindings);
});

await test.step('And I fill the `Objective findings` question', async () => {
Expand Down Expand Up @@ -160,6 +160,7 @@ test('Form state is retained when moving between forms in the workspace', async
});

await test.step('Then I should see retained inputs in `Soap note template` form', async () => {
await page.locator('#SOAPSubjectiveFindings').waitFor();
await expect(page.getByText(subjectiveFindings)).toBeVisible();
await expect(page.getByText(objectiveFindings)).toBeVisible();
});
Expand Down

0 comments on commit 1d1e39c

Please sign in to comment.