Skip to content

Commit

Permalink
Merge branch 'main' into fix/remove-deprecated-components-and-fix-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Jul 4, 2024
2 parents 9ba1c58 + 81d8649 commit f962749
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/specs/lab-orders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test.beforeEach(async ({ api }) => {

test('Record a lab order', async ({ page }) => {
const ordersPage = new OrdersPage(page);
const orderBasket = page.locator('[data-extension-slot-name="order-basket-slot"]');

await test.step('When I visit the orders page', async () => {
await ordersPage.goTo(patient.uuid);
Expand All @@ -24,7 +25,7 @@ test('Record a lab order', async ({ page }) => {
});

await test.step('And I click the `Add +` button on the Lab orders tile', async () => {
await page.getByRole('button', { name: /add/i }).nth(1).click();
await orderBasket.getByRole('button', { name: /add/i }).nth(1).click();
});

await test.step('Then I type `Blood urea nitrogen` into the search bar', async () => {
Expand Down

0 comments on commit f962749

Please sign in to comment.