Skip to content

Commit

Permalink
Do the requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RandilaP committed Jul 27, 2023
1 parent 53a6e29 commit 0bacc28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions e2e/specs/record-drug-allergies.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ test('Add drug allergy to patient', async ({ page, api }) => {
await allergiesPage.page.getByText('Save').click();
});

await test.step('Then I see the Allergy Saved message', async () => {
await test.step('Then I should see the Allergy Saved notification', async () => {
await expect(allergiesPage.page.getByText('saved')).toBeVisible();
});

await test.step('Then I see the data of the allergy that I saved', async () => {
await test.step('And I see the recorded allergy data', async () => {
const rows = allergiesPage.allergyTable().locator('tr');
const allergenCell = rows.locator('td:first-child');
const severityCell = rows.locator('td:nth-child(2)');
Expand Down
6 changes: 3 additions & 3 deletions e2e/specs/record-environmental-allergy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ test('Add environmental allergy to patient', async ({ page, api }) => {
await allergiesPage.page.locator('#comments').fill('Test comment');
});

await test.step('Then I click the save button', async () => {
await test.step('And I click the save button', async () => {
await allergiesPage.page.getByText('Save').click();
});

await test.step('And I see the Allergy saved message', async () => {
await test.step('Then I should see the Allergy Saved notification', async () => {
await expect(allergiesPage.page.getByText('saved')).toBeVisible();
});

await test.step('And I see the data of the allergy that I saved', async () => {
await test.step('And I see the recorded allergy data', async () => {
const rows = allergiesPage.allergyTable().locator('tr');
const allergenCell = rows.locator('td:first-child');
const severityCell = rows.locator('td:nth-child(2)');
Expand Down
8 changes: 4 additions & 4 deletions e2e/specs/record-food-allergy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ test('Add Food allergy to patient', async ({ page, api }) => {
await allergiesPage.page.getByText('Record allergy').click();
});

await test.step('Then I filled the form', async () => {
await test.step('Ab=nd I filled the form', async () => {
await allergiesPage.page.getByText('Food').click();
await allergiesPage.page.getByText('Eggs').click();
await allergiesPage.page.getByText('Mental status change').click();
await allergiesPage.page.getByText('Mild').click();
await allergiesPage.page.locator('#comments').fill('Test comment');
});

await test.step('Then I click the save button', async () => {
await test.step('And I click the save button', async () => {
await allergiesPage.page.getByText('Save').click();
});

await test.step('And I see the Allergy saved message', async () => {
await test.step('Then I should see the Allergy Saved notification', async () => {
await expect(allergiesPage.page.getByText('saved')).toBeVisible();
});

await test.step('And I see the data of the allergy that I saved', async () => {
await test.step('And I see the recorded allergy data', async () => {
const rows = await allergiesPage.allergyTable().locator('tr');
const allergenCell = rows.locator('td:first-child');
const severityCell = rows.locator('td:nth-child(2)');
Expand Down

0 comments on commit 0bacc28

Please sign in to comment.