Skip to content

Commit

Permalink
MOSIP-33728 (#403)
Browse files Browse the repository at this point in the history
* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <[email protected]>

* Delete androidReg-clientTest/.classpath

Signed-off-by: jayesh12234 <[email protected]>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-33047

Signed-off-by: Jayesh Kharode <[email protected]>

* MOSIP-33047

Signed-off-by: Jayesh Kharode <[email protected]>

* Delete androidReg-clientTest/.classpath

Signed-off-by: jayesh12234 <[email protected]>

* MOSIP-33728

Signed-off-by: damodar <[email protected]>

* MOSIP-33728

Signed-off-by: damodar <[email protected]>

---------

Signed-off-by: Jayesh Kharode <[email protected]>
Signed-off-by: jayesh12234 <[email protected]>
Signed-off-by: damodar <[email protected]>
Co-authored-by: Jayesh Kharode <[email protected]>
Co-authored-by: jayesh12234 <[email protected]>
  • Loading branch information
3 people authored Jul 5, 2024
1 parent 8459113 commit ee345dc
Show file tree
Hide file tree
Showing 29 changed files with 3,111 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public AcknowledgementPage(AppiumDriver driver) {
public abstract boolean isBiometricsInformationInAcknowledgementPageDisplayed();

public abstract DemographicDetailsPage clickOnDemographicDetailsTitle();

public abstract String getAID();


public abstract String getAID();

}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,4 @@ public ApplicantBiometricsPage(AppiumDriver driver) {
public abstract boolean isCommentHeaderDisplyed();

public abstract boolean isExceptionCountDisplyed();


}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ private org.openqa.selenium.Point getCenterOfElement(org.openqa.selenium.Point p
protected void clickOnCheckBox() {
PointerInput finger1 = new PointerInput(PointerInput.Kind.TOUCH, "finger1");
Sequence sequence = new Sequence(finger1, 1)
.addAction(finger1.createPointerMove(Duration.ZERO, PointerInput.Origin.viewport(), 72, 1123)) //69 1158 99 1758//temporary solution to click on checkbox using x and y axis
.addAction(finger1.createPointerMove(Duration.ZERO, PointerInput.Origin.viewport(), 59, 1004)) //69 1158//temporary solution to click on checkbox using x and y axis
//.addAction(finger1.createPointerMove(Duration.ZERO, PointerInput.Origin.viewport(), 72, 1123)) //69 1158 99 1758//temporary solution to click on checkbox using x and y axis
.addAction(finger1.createPointerDown(PointerInput.MouseButton.LEFT.asArg()))
.addAction(new Pause(finger1, Duration.ofMillis(100))) // Add a small pause (adjust duration as needed)
.addAction(finger1.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));
Expand Down Expand Up @@ -171,7 +172,7 @@ protected String getCurrentDate() {

protected String getCurrentDateWord() {
LocalDate today = LocalDate.now();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEEE dd MMMM", Locale.ENGLISH);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEEE d MMMM", Locale.ENGLISH);
String formattedDate = today.format(formatter);
return formattedDate;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public OperationalTaskPage(AppiumDriver driver) {
public abstract void clickSynchronizeDataButton();

public abstract boolean checkLastSyncDate();

public abstract void clickApplicationUploadTitle();

public abstract boolean isApplicationUploadTitleDisplayed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,13 @@ public SupervisorBiometricVerificationpage(AppiumDriver driver) {

public abstract boolean checkThresholdValueFace();

public abstract boolean clickOnVerifyAndSaveButton();
public abstract boolean isVerifyAndSaveButtonEnabled();

public abstract void clickOnVerifyAndSaveButton();

public abstract boolean isDismissPageLoaded();

public abstract boolean isOperatorOnboardedPopupLoaded();

public abstract void clickOnHomeButton();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
package regclient.page;

import io.appium.java_client.AppiumDriver;

public abstract class UpdateOperatorBiometricspage extends BasePage{

public UpdateOperatorBiometricspage(AppiumDriver driver) {
super(driver);

}

public abstract void clickOnIrisScan();

public abstract void clickOnRightHandScanIcon();

public abstract void clickOnLeftHandScanIcon();

public abstract void clickOnThumbsScanIcon();

public abstract void clickOnFaceScanIcon();

public abstract void clickOnExceptionScanIcon();

public abstract void clickOnScanButton();

public abstract void clickOnNextButton();

public abstract void closeScanCapturePopUp();

public abstract boolean isRightHandScanTitleDisplyed();

public abstract boolean isLeftHandScanTitleDisplyed();

public abstract boolean isThumbsScanTitleDisplyed();

public abstract boolean isFaceScanTitleDisplyed();

public abstract boolean isExceptionScanTitleDisplyed();

public abstract boolean isIrisScan();

public abstract boolean isRightHandScan();

public abstract boolean isLeftHandScan();

public abstract boolean isThumbsScan();

public abstract boolean isFaceScan();

public abstract boolean isIrisScanQualityDisplyed();

public abstract boolean isRightHandScanQualityDisplyed();

public abstract boolean isLeftHandScanQualityDisplyed();

public abstract boolean isThumbsScanQualityDisplyed();

public abstract boolean isFaceScanQualityDisplyed();

public abstract void clickOnMarkExceptionButton();

public abstract void markOneEyeException();

public abstract void markOneFingureException();

public abstract boolean isExceptionTypeTitleDisplyed();

public abstract void clickOnExceptionTypeTemporaryButton();

public abstract boolean isCommentHeaderDisplyed();

public abstract void enterCommentsInTextBox(String comments);

public abstract void clickOnIrisScanTitle();

public abstract void clickOnThumbsScanTitle();

public abstract boolean isMarkingExceptionsOnFaceIsNotAllowedTextDisplyed();

public abstract boolean isZoomButtonDisplyed();

public abstract void clickOnRightHandScanTitle();

public abstract void clickOnLeftHandScanTitle();

public abstract void clickOnFaceScanTitle();

public abstract boolean checkThresholdValueIris();

public abstract boolean checkThresholdValueRightHand();

public abstract boolean checkThresholdValueLeftHand();

public abstract boolean checkThresholdValueThumbs();

public abstract boolean checkThresholdValueFace();

public abstract boolean isSupervisorBiometricUpdatePageLoaded();

public abstract boolean isVerifyAndSaveButtonEnabled();

public abstract boolean isOperatorBiometricsUpdatedPopupLoaded();

public abstract void clickOnHomeButton();

public abstract void clickOnVerifyAndSaveButton();

public abstract boolean isDismissPageLoaded();

}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public DemographicDetailsPage clickOnDemographicDetailsTitle() {
clickOnElement(demographicDetailsTitle);
return new DemographicDetailsPageArabic(driver);
}

public String getAID() {
return getTextFromLocator(applicationID);
}
Expand All @@ -84,5 +83,4 @@ public void clickOnSyncPacketButton() {
waitTime(10);
clickOnElement(syncPacketButton);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,4 @@ public boolean isExceptionCountDisplyed() {
}
return isElementDisplayed(exceptionCount);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,18 @@ public class SupervisorBiometricVerificationpageArabic extends SupervisorBiometr
@AndroidFindBy(xpath = "//android.view.View[contains(@content-desc, \"الحد \")]/following-sibling::android.view.View")
private WebElement scanQualityText;

@AndroidFindBy(accessibility = "VERIFY & SAVE")
@AndroidFindBy(accessibility = "التحقق والحفظ")
private WebElement verifyAndSaveButton;

@AndroidFindBy(accessibility = "رفض")
private WebElement dismissPage;

@AndroidFindBy(accessibility = "لقد انضممت بنجاح.")
private WebElement successPopup;

@AndroidFindBy(accessibility = "بيت")
private WebElement homeButton;

public SupervisorBiometricVerificationpageArabic(AppiumDriver driver) {
super(driver);
}
Expand Down Expand Up @@ -338,7 +347,26 @@ public boolean checkThresholdValueFace() {
return false;
}

public boolean clickOnVerifyAndSaveButton() {
return isElementDisplayed(verifyAndSaveButton);
public boolean isVerifyAndSaveButtonEnabled() {
return isElementDisplayed(verifyAndSaveButton);
}

@Override
public void clickOnVerifyAndSaveButton() {
clickOnElement(verifyAndSaveButton);

}

public boolean isDismissPageLoaded() {
return isElementDisplayed(dismissPage);
}

public boolean isOperatorOnboardedPopupLoaded() {
return isElementDisplayed(successPopup);
}

public void clickOnHomeButton() {
clickOnElement(homeButton);
}

}
Loading

0 comments on commit ee345dc

Please sign in to comment.