Skip to content

Commit

Permalink
(Breaking) Revert the changes related to openmrs#763
Browse files Browse the repository at this point in the history
  • Loading branch information
Piumal1999 committed Aug 3, 2023
1 parent 0237936 commit 84fd869
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion e2e/commands/patient-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const generateRandomPatient = async (api: APIRequestContext): Promise<Pat
],
attributes: [],
birthdate: '2020-2-1',
birthdateEstimated: false,
birthdateEstimated: true,
dead: false,
gender: 'M',
names: [
Expand Down
6 changes: 1 addition & 5 deletions e2e/pages/registration-and-edit-page.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Locator, Page, expect } from '@playwright/test';
import { Locator, Page } from '@playwright/test';

export type PatientRegistrationSex = 'male' | 'female' | 'other' | 'unknown';

Expand Down Expand Up @@ -40,10 +40,6 @@ export class RegistrationAndEditPage {
await this.page.goto(editPatientUuid ? `patient/${editPatientUuid}/edit` : 'patient-registration');
}

async waitUntilTheFormIsLoaded() {
await expect(this.createPatientButton()).toBeEnabled();
}

async fillPatientRegistrationForm(formValues: PatientRegistrationFormValues) {
const tryFill = (locator: Locator, value?: string) => value && locator.fill(value);
formValues.sex && (await this.sexRadioButton(formValues.sex).check());
Expand Down
1 change: 0 additions & 1 deletion e2e/specs/edit-patient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ test('Edit a patient', async ({ page, api }) => {

await test.step("When I visit the registration page to a patient's details", async () => {
await patientEditPage.goto(patient.uuid);
await patientEditPage.waitUntilTheFormIsLoaded();
});

await test.step('And then I click on fill new values into the registration form and then click the `Submit` button', async () => {
Expand Down
1 change: 0 additions & 1 deletion e2e/specs/register-new-patient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ test('Register a new patient', async ({ page, api }) => {

await test.step('When I visit the registration page', async () => {
await patientRegistrationPage.goto();
await patientRegistrationPage.waitUntilTheFormIsLoaded();
});

await test.step('And then I click on fill new values into the registration form and then click the `Submit` button', async () => {
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e/specs',
timeout: 3 * 60 * 1000,
expect: {
timeout: 60 * 1000,
timeout: 40 * 1000,
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
Expand Down

0 comments on commit 84fd869

Please sign in to comment.