Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ratest 302-Add an identifier for a patient #492

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public void searchPatientIdentifierOrPatientName(String text) {
waitForTextToBePresentInElement(SEARCH_STATUS,text.substring(0, text.length() - 1));
}

public void clickOnFirstPatient(String text) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method can only work for reference application not legacy ui, so if you are working towards legacyui, please continue.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks did the needful

setText(SEARCH_ELEMENT, text);
clickOn(By.cssSelector("#openmrsSearchTable > tbody > tr:nth-child(2)"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public void loadManagePatientsPage() {

@When("a user searches for the patient")
public void searchPatientIdentifierOrPatientName() {
managePatientPage.searchPatientIdentifierOrPatientName(firstPatientIdentifier);
managePatientPage.searchPatientIdentifierOrPatientName("john");
}

@And("user selects returned patient")
public void userSelectsReturnedPatient() {
dashboardPage = findPatientPage.clickOnFirstPatient();
managePatientPage.clickOnFirstPatient("john");
}

EdisonMeks marked this conversation as resolved.
Show resolved Hide resolved
@And("a user clicks on add new identifier")
Expand Down