Skip to content

Commit

Permalink
UP1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrin2005 committed Dec 28, 2024
1 parent d6fe9b4 commit 197c9a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/patient_spec/PatientInvestigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ describe("Patient Investigation Creation from Patient consultation page", () =>
it("Create a investigation for a patient and verify its reflection", () => {
patientPage.visitPatient(patientName);
patientInvestigation.clickInvestigationTab();

cy.get("#investigations", { timeout: 15000 }).should("be.visible");

patientInvestigation.clickLogLabResults();
patientInvestigation.selectInvestigationOption([
"Haematology",
Expand All @@ -31,7 +34,6 @@ describe("Patient Investigation Creation from Patient consultation page", () =>
cy.clickSubmitButton("Save Investigation");
cy.verifyNotification("Please Enter at least one value");
cy.closeNotification();
// Temporary workflow for investigation since we dont have dummy data and moving away from existing module
});

afterEach(() => {
Expand Down
1 change: 1 addition & 0 deletions cypress/pageobject/Patient/PatientInvestigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class PatientInvestigation {

clickInvestigationTab() {
cy.verifyAndClickElement("#consultation_tab_nav", "Investigations");
cy.get("#investigations", { timeout: 15000 }).should("exist");
}

selectInvestigation(investigation: string) {
Expand Down

0 comments on commit 197c9a9

Please sign in to comment.