Skip to content

Commit

Permalink
reslove conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Anup Nehe <[email protected]>
  • Loading branch information
anup-nehe committed Sep 18, 2024
1 parent 728d671 commit a82024d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
7 changes: 1 addition & 6 deletions ui-test/src/main/java/pages/HomePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ public void ClickonQRUploadButton() {

public void enterIssuersInSearchBox(String string) {
enterText(driver, By.xpath("//input[@type='text']"), string);
// if(isElementIsVisible(driver, By.xpath("//p[@data-testid='IntroBox-SubText']"))) {
// clickOnElement(driver, By.xpath("//p[@data-testid='IntroBox-SubText']"));
// }

}

public void clickOnDownloadMosipCredentials() {
Expand Down Expand Up @@ -330,7 +328,6 @@ public void openNewTab(){
if (allWindowHandles.size() >= 2) {
String secondWindowHandle = allWindowHandles.toArray(new String[0])[1];
String firstWindowHandle = allWindowHandles.toArray(new String[0])[0];
// Switch to the second window
driver.switchTo().window(secondWindowHandle);
}
}
Expand All @@ -352,7 +349,6 @@ public void SwitchToVerifyTab(){
if (allWindowHandles.size() >= 2) {
String secondWindowHandle = allWindowHandles.toArray(new String[0])[1];
String firstWindowHandle = allWindowHandles.toArray(new String[0])[0];
// Switch to the second window
driver.switchTo().window(firstWindowHandle);
}
}
Expand All @@ -375,7 +371,6 @@ public void selectDateOfBirth() {
// TODO Auto-generated catch block
e.printStackTrace();
}
// System.out.println(driver.getPageSource());
System.out.println(driver.getWindowHandles());

JavascriptExecutor js = (JavascriptExecutor) driver;
Expand Down
12 changes: 0 additions & 12 deletions ui-test/src/test/java/stepdefinitions/StepDef.java
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,10 @@ public void user_search_the_issuers_with(String string) {
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
// homePage.enterIssuersInSearchBox("National");
homePage.enterIssuersInSearchBox(string);
}
@When("User click on veridonia credentials button")
public void user_click_on_download_veridonia_button() {
// homePage.scrollDownByPage(baseTest.getDriver());
homePage.clickOnDownloadMosipCredentials();
}

Expand All @@ -544,16 +542,6 @@ public void user_verify_mosip_national_id_by_e_signet_displayed() {
public void user_click_on_health_insurance_id_by_e_signet_button() {
homePage.clickOnMosipNationalId();
}
@When("User verify login page lables")
public void user_verify_login_page_lables() {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
@When("User verify vid input box header")
public void user_verify_vid_input_box_header() {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
@When("User enter the {string}")
public void user_enter_the(String string) {
homePage.enterVid(string);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Feature: Inji Verify upload qr code testing
And User enter the full name "<full name>"
And User enter the date of birth "<date of birth>"
And User click on login button


And User verify pdf is downloaded
And User verify go back button
And Open inji verify in new tab
Expand Down

0 comments on commit a82024d

Please sign in to comment.