Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kajambiya committed Aug 20, 2024
1 parent 7333026 commit 715ee60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions e2e/specs/clinical-forms.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ test('Fill a clinical form', async ({ page }) => {
});

await test.step('Then I should see a success notification', async () => {
await expect(page.getByText(/record created/i, { exact: true })).toBeVisible();
await expect(page.getByText(/a new encounter was created/i, { exact: true })).toBeVisible();
await expect(page.getByText(/form submitted/i, { exact: true })).toBeVisible();
await expect(page.getByText(/form submitted successfully/i, { exact: true })).toBeVisible();
});

await test.step('And if I navigate to the visits dashboard', async () => {
Expand Down Expand Up @@ -219,8 +219,8 @@ test('Form state is retained when minimizing a form in the workspace', async ({
});

await test.step('Then I should see a success notification', async () => {
await expect(page.getByText(/record created/i)).toBeVisible();
await expect(page.getByText(/a new encounter was created/i)).toBeVisible();
await expect(page.getByText(/form submitted/i)).toBeVisible();
await expect(page.getByText(/form submitted successfully/i)).toBeVisible();
});
});

Expand Down
4 changes: 2 additions & 2 deletions e2e/specs/results-viewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ test('Record and edit test results', async ({ page }) => {
});

await test.step('Then I should see a success notification', async () => {
await expect(page.getByText(/record created/i, { exact: true })).toBeVisible();
await expect(page.getByText(/a new encounter was created/i, { exact: true })).toBeVisible();
await expect(page.getByText(/form submitted/i, { exact: true })).toBeVisible();
await expect(page.getByText(/form submitted successfully/i, { exact: true })).toBeVisible();
});

await test.step('When I go to the results viewer page', async () => {
Expand Down

0 comments on commit 715ee60

Please # to comment.