Skip to content

Commit

Permalink
Fix locator
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrosario committed Oct 5, 2023
1 parent fb1cb18 commit 5a88428
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions e2e/tests/erStatus.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ test.describe('ER status', () => {
await expect(appPage).toHaveURL('/ems');
await appPage.getByRole('button', { name: /hospital info/i }).click();
const ucsfRow = appPage.locator('.hospitalstatusrow_container').filter({ hasText: /ucsf parnassus/i });
await expect(ucsfRow.getByText('5')).toBeVisible();
await expect(ucsfRow.getByText('8')).toBeVisible();
await expect(ucsfRow.locator('.hospitalstatusrow__data').filter({ hasText: '5' })).toBeVisible();
await expect(ucsfRow.locator('.hospitalstatusrow__data').filter({ hasText: '8' })).toBeVisible();
await expect(ucsfRow.getByText('scanner broke')).toBeVisible();
await context.close();
});
Expand Down Expand Up @@ -66,7 +66,6 @@ test.describe('ER status', () => {
await expect(appPage).toHaveURL('/ems');
await appPage.getByRole('button', { name: /hospital info/i }).click();
const row = appPage.locator('.hospitalstatusrow_container', { hasText: /ucsf parnassus/i });
// console.log("ROW: ", row)
await expect(row.locator('.hospitalstatusrow__data', { hasText: '5' })).not.toBeVisible();
await expect(row.locator('.hospitalstatusrow__data', { hasText: '8' })).not.toBeVisible();
await expect(row.locator('.hospitalstatusrow__notes', { hasText: 'scanner broke' })).not.toBeVisible();
Expand Down

0 comments on commit 5a88428

Please sign in to comment.