Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix #1010

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "";


}
}
Loading