Skip to content

Commit

Permalink
Merge pull request #1010 from opensrp/minorFix
Browse files Browse the repository at this point in the history
Minor fix
  • Loading branch information
murayakarina authored Aug 14, 2024
2 parents de59871 + 69c3d07 commit 01a68bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void A_setUp() throws InterruptedException {
public void userCanSearchOutsideAndInsideMyHealthFacilityByFirstName() throws InterruptedException {
onView(withId(R.id.action_search)).perform(click());
Thread.sleep(2000);
onView(withId(R.id.first_name)).perform(typeText(Configs.TestDataConfigs.firstName),ViewActions.closeSoftKeyboard());
onView(withId(R.id.first_name)).perform(typeText(Configs.TestDataConfigs.firstNameA),ViewActions.closeSoftKeyboard());
onView(withId(R.id.search)).perform(click());
Thread.sleep(5000);
Matcher<View> parentMatcher = withId(R.id.list_view_layout);
Expand All @@ -77,7 +77,7 @@ public void userCanSearchOutsideAndInsideMyHealthFacilityByFirstName() throws In
public void userCanSearchOutsideAndInsideMyHealthFacilityByLastName() throws InterruptedException {
onView(withId(R.id.action_search)).perform(click());
Thread.sleep(2000);
onView(withId(R.id.last_name)).perform(typeText(Configs.TestDataConfigs.lastName),ViewActions.closeSoftKeyboard());
onView(withId(R.id.last_name)).perform(typeText(Configs.TestDataConfigs.lastNameA),ViewActions.closeSoftKeyboard());
onView(withId(R.id.search)).perform(click());
Matcher<View> parentMatcher = withId(R.id.list_view_layout);
Thread.sleep(5000);
Expand Down Expand Up @@ -130,7 +130,7 @@ public void userCanSearchOutsideAndInsideMyHealthFacilityByPhoneNumber() throws
Thread.sleep(2000);
onView(withHint("Expected date of delivery")).perform(swipeUp());
onView(withId(R.id.dob)).perform(swipeUp());
onView(withId(R.id.phone_number)).perform(typeText(Configs.TestDataConfigs.phoneNumber));
onView(withId(R.id.phone_number)).perform(typeText(Configs.TestDataConfigs.phoneNumberA));
onView(withId(R.id.search)).perform(click());
Thread.sleep(5000);
Matcher<View> parentMatcher = withId(R.id.list_view_layout);
Expand Down Expand Up @@ -162,7 +162,7 @@ public void userCanSearchOutsideAndInsideMyHealthFacilityByScanningAQRCOde() thr
public void userCanSearchInMyHealthFacilityByFirstName () {
onView(withId(R.id.action_search)).perform(click());
onView(withId(R.id.my_catchment)).perform(click());
onView(withId(R.id.first_name)).perform(typeText(Configs.TestDataConfigs.firstName),ViewActions.closeSoftKeyboard());
onView(withId(R.id.first_name)).perform(typeText(Configs.TestDataConfigs.firstNameA),ViewActions.closeSoftKeyboard());
onView(withId(R.id.search)).perform(click());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ public class Configs {
public static class TestDataConfigs{
public static final String clientName = "Lauren Hill";
public static final String clientID = "7138845";
public static final String firstName = "Terence";
public static final String lastName = "Direction";
public static final String firstNameA = "Terence";
public static final String lastNameA = "Direction";
public static final String clientName2 = "Lily Woods";
public static final String phoneNumber = "584555";
public static final String phoneNumberA = "584555";
public static final String alternateContactName = "Lu";
public static final String firstName = "Test";
public static final String lastName = "Client";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package org.smartregister.anc.activity.utils;
public class Constants {
public static class ancConstants {
public static final String ancUsername = "";
public static final String ancPassword = "";

//values to be input each time a test is run

public static final String ancUsername = "";
public static final String ancPassword = "";


}
}

0 comments on commit 01a68bc

Please sign in to comment.