Skip to content

Commit

Permalink
Add a '8-seconds' delay after updating patient details. (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud authored Jan 20, 2025
1 parent b74727d commit 0e5b124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/openmrs-senaite-flows.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test';
import { O3_URL, SENAITE_URL } from '../utils/configs/globalSetup';
import { OpenMRS, patientName } from '../utils/functions/openmrs';
import { delay, OpenMRS, patientName } from '../utils/functions/openmrs';
import { SENAITE } from '../utils/functions/senaite';

let openmrs: OpenMRS;
Expand Down Expand Up @@ -37,7 +37,7 @@ test('Editing the details of an OpenMRS patient with a synced lab order edits th
await expect(page.locator('table tbody tr:nth-child(1) td.contentcell.title div span a')).toContainText(`${patientName.firstName + ' ' + patientName.givenName}`);
await page.goto(`${O3_URL}`);
await openmrs.searchPatient(`${patientName.firstName + ' ' + patientName.givenName}`);
await openmrs.updatePatientDetails();
await openmrs.updatePatientDetails(), delay(8000);

// verify
await page.goto(`${SENAITE_URL}`);
Expand Down

0 comments on commit 0e5b124

Please sign in to comment.