Skip to content

Commit

Permalink
Merge pull request #766 from jayesh12234/develop
Browse files Browse the repository at this point in the history
MOSIP-35988
  • Loading branch information
aranaravi authored Sep 24, 2024
2 parents b2582a6 + 73b73cb commit f314390
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

@Test(groups = "LG")
public class LoginTest extends BaseClass {

public static int run=0;

@Test(priority = 0)
public static void loginTest() throws Exception {

String envPath = ConfigManager.getiam_residentportal_path();
String otp = "";
String externalemail = ConfigManager.getexternalemail(); driver.get(envPath);
Expand All @@ -36,13 +37,14 @@ public static void loginTest() throws Exception {
}
Commons.click( driver, By.id("verify_otp"));
Commons.wait(2000);
if(Commons.isDisplayed(driver, By.id("dismissBtn")))
Commons.click(driver, By.id("dismissBtn"));
else {
if(run==0) {
Commons.click(driver, By.id("authorize_scope"));
Commons.click(driver, By.id("voluntary_claims"));
Commons.click(driver, By.id("continue"));
Commons.click(driver, By.id("dismissBtn"));
run=1;
}else if(run==1) {
Commons.click(driver, By.id("dismissBtn"));
}
Commons.assertCheck(By.id("uinservices/viewhistory"),"verify if uin services login using perpetual vid");

Expand Down

0 comments on commit f314390

Please sign in to comment.