diff --git a/e2e/tests/diagnosis.spec.ts b/e2e/tests/diagnosis.spec.ts index e558708..2bfc8ae 100644 --- a/e2e/tests/diagnosis.spec.ts +++ b/e2e/tests/diagnosis.spec.ts @@ -51,11 +51,11 @@ test('Create, revise and discontinue diagnosis.', async ({ page }) => { await page.locator('#opd-tabs').getByText('Diagnosis').click(); await page.locator('i.fa.fa-edit').first().click(); await delay(3000); - await page.getByRole('button', { name: 'PRESUMED'}).nth(1).click(); + await page.getByRole('button', { name: 'PRESUMED'}).nth(1).dblclick(); await bahmni.saveOrder(); await page.locator('i.fa.fa-edit').nth(1).click(); await delay(3000); - await page.getByRole('button', { name: 'CONFIRMED' }).nth(1).click(); + await page.getByRole('button', { name: 'CONFIRMED' }).nth(1).dblclick(); await bahmni.saveOrder(); await page.locator('#dashboard-link span.patient-name').click(); await expect(primaryDiagnosisCertaintySelector).toContainText(/presumed/i);