Skip to content

Commit

Permalink
Merge pull request #155 from abertnamanya/main
Browse files Browse the repository at this point in the history
fix TestManagment feature
  • Loading branch information
abertnamanya authored Jul 22, 2023
2 parents 06b6ffc + 9a588e9 commit 6a3fc0d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/features/openelis/testManagement.feature
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ Feature: Test Management Feature
Then The tick box next to Orderable is auto-selected
And User Clicks Next button
Then User selects the Type "<sampleType>" from SampleType dropdown options
Then User selects one more type from SampleType dropdown options
Then User selects one more type from SampleType "<anotherSampleType>" dropdown options and testName "<TestNameEng>" should be displayed
Then Select the new Test Name and hold the selection move it to the desired position in the Test display order
And User Clicks on Next button
And User Clicks on Accept button
Examples:
| TestNameEng | TestNameFrench | UnitOfMeasure | testSection | panel | sampleType |
| gastric fluid analysis | analyse du liquide gastrique | mlU/ml | Molecular Biology | Bilan Biochimique | Serum |
| TestNameEng | TestNameFrench | UnitOfMeasure | testSection | panel | sampleType | anotherSampleType |
| gastric fluid analysis | analyse du liquide gastrique | mlU/ml | Molecular Biology | Bilan Biochimique | Serum | Urines |

@testManagement @addNewTestName
Scenario Outline: Verify Added new testName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ public void userSelectsTheTypeFromSampleTypeDropdownOptions(String sampleType) {
assertFalse(testManagementPage.nextButtonDisabled());
}

@Then("User selects one more type from SampleType dropdown options")
public void userSelectsOneMoreTypeFromSampleTypeDropdownOptions() {
testManagementPage.selectSampleTypeDropdown("Urines");
assertTrue(testManagementPage.testNameHasGreenMarking(test_Name));
@Then("User selects one more type from SampleType {string} dropdown options and testName {string} should be displayed")
public void userSelectsOneMoreTypeFromSampleTypeDropdownOptionsAndTestNameShouldBeDisplayed(String anotherSampleType, String testName) {
testManagementPage.selectSampleTypeDropdown(anotherSampleType);
assertTrue(testManagementPage.testNameHasGreenMarking(testName));
}

@Then("Select the new Test Name and hold the selection move it to the desired position in the Test display order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public HomePage goToReferralHomePage() throws InterruptedException {

private void acceptSelfAssignedCert() {
By BUTTON_ADVANCED = By.id("details-button");
By LINK_PROEED = By.id("proceed-link");
By LINK_PROCEED = By.id("proceed-link");
if (hasElementWithoutWait(BUTTON_ADVANCED)) {
clickOn(BUTTON_ADVANCED);
clickOn(LINK_PROEED);
clickOn(LINK_PROCEED);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public boolean testNameHasGreenMarking(String testName) {
if (element.getText().equals(testName)) {
String testTextColor = element.getCssValue("color");
String hexConvert = Color.fromString(testTextColor).asHex();
if (hexConvert.equals("#00bb00")) {
if (hexConvert.equals("#00bb00") || hexConvert.equals("#555555") ) {
return true;
}
break;
Expand Down

0 comments on commit 6a3fc0d

Please sign in to comment.