Skip to content

Commit

Permalink
Merge pull request #746 from jayesh12234/develop
Browse files Browse the repository at this point in the history
MOSIP-34496
  • Loading branch information
aranaravi authored Aug 1, 2024
2 parents 42d0a02 + 6bc501e commit cb431a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public class GetMyUIN extends BaseClass{
String vid =TestRunner.perpetualVid;
@Test(priority=0)
public void getMyUIN() throws Exception {
String tempemail = ConfigManager.gettempemail();
String externalemail = ConfigManager.getexternalemail();
Commons.click( driver, By.id("getMyUIN"));
Commons.enter( driver, By.id("aidValue"), vid);//
Commons.click( driver, By.id("getUinSendOtpBtn"));
String otp = MockSMTPListener.getOtp(tempemail);
String otp = MockSMTPListener.getOtp(externalemail);
Commons.enter( driver, By.id("otp-input"), otp);
Commons.click( driver, By.xpath("//button[@id='getUinsubmitBtn']"));
Commons.assertCheck(By.id("dismissBtn"),"verify if Your UIN card has been successfully downloaded against the Event ID");
Expand All @@ -35,11 +35,11 @@ public void getMyUINWithoutAID() throws InterruptedException, IOException {

@Test(priority=2)
public void getMyUINWithInvalidOtp() throws Exception {
String tempemail = ConfigManager.gettempemail();
String externalemail = ConfigManager.getexternalemail();
Commons.click( driver, By.id("getMyUIN"));
Commons.enter(driver, By.id("aidValue"), vid);
Commons.click(driver, By.id("getUinSendOtpBtn"));
String otp = MockSMTPListener.getOtp(tempemail);
String otp = MockSMTPListener.getOtp(externalemail);
Commons.enter(driver, By.id("otp-input"), otp+"56");
Commons.click(driver, By.xpath("//button[@id='getUinsubmitBtn']"));
Commons.click(driver, By.id("dismissBtn"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static String getDateTime(){

public static void click(WebDriver driver, By by) throws IOException, InterruptedException {
logger.info("Clicking " + by );

wait(1000);
try {
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(30));
wait.until(ExpectedConditions.elementToBeClickable(by));
Expand Down

0 comments on commit cb431a5

Please sign in to comment.