Skip to content

Commit 5a88428

Browse files
committed
Fix locator
1 parent fb1cb18 commit 5a88428

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

e2e/tests/erStatus.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ test.describe('ER status', () => {
3131
await expect(appPage).toHaveURL('/ems');
3232
await appPage.getByRole('button', { name: /hospital info/i }).click();
3333
const ucsfRow = appPage.locator('.hospitalstatusrow_container').filter({ hasText: /ucsf parnassus/i });
34-
await expect(ucsfRow.getByText('5')).toBeVisible();
35-
await expect(ucsfRow.getByText('8')).toBeVisible();
34+
await expect(ucsfRow.locator('.hospitalstatusrow__data').filter({ hasText: '5' })).toBeVisible();
35+
await expect(ucsfRow.locator('.hospitalstatusrow__data').filter({ hasText: '8' })).toBeVisible();
3636
await expect(ucsfRow.getByText('scanner broke')).toBeVisible();
3737
await context.close();
3838
});
@@ -66,7 +66,6 @@ test.describe('ER status', () => {
6666
await expect(appPage).toHaveURL('/ems');
6767
await appPage.getByRole('button', { name: /hospital info/i }).click();
6868
const row = appPage.locator('.hospitalstatusrow_container', { hasText: /ucsf parnassus/i });
69-
// console.log("ROW: ", row)
7069
await expect(row.locator('.hospitalstatusrow__data', { hasText: '5' })).not.toBeVisible();
7170
await expect(row.locator('.hospitalstatusrow__data', { hasText: '8' })).not.toBeVisible();
7271
await expect(row.locator('.hospitalstatusrow__notes', { hasText: 'scanner broke' })).not.toBeVisible();

0 commit comments

Comments
 (0)