Add group filter back in the UI tests

This commit is contained in:
Alexander Bakker 2021-05-22 12:45:58 +02:00
parent e2ddc8a80f
commit 77f59d41ad

View file

@ -103,9 +103,8 @@ public class OverallTest extends AegisTest {
changeSort(R.string.sort_alphabetically_reverse); changeSort(R.string.sort_alphabetically_reverse);
changeSort(R.string.sort_custom); changeSort(R.string.sort_custom);
/*changeFilter(_groupName); changeGroupFilter(_groupName);
changeFilter(R.string.filter_ungrouped); changeGroupFilter(null);
changeFilter(R.string.all);*/
onView(withId(R.id.rvKeyProfiles)).perform(RecyclerViewActions.actionOnItemAtPosition(1, longClick())); onView(withId(R.id.rvKeyProfiles)).perform(RecyclerViewActions.actionOnItemAtPosition(1, longClick()));
onView(withId(R.id.rvKeyProfiles)).perform(RecyclerViewActions.actionOnItemAtPosition(2, click())); onView(withId(R.id.rvKeyProfiles)).perform(RecyclerViewActions.actionOnItemAtPosition(2, click()));
@ -146,15 +145,15 @@ public class OverallTest extends AegisTest {
onView(withText(resId)).perform(click()); onView(withText(resId)).perform(click());
} }
/*private void changeFilter(String text) { private void changeGroupFilter(String text) {
openContextualActionModeOverflowMenu(); onView(withId(R.id.chip_group)).perform(click());
onView(withText(R.string.filter)).perform(click()); if (text == null) {
onView(withId(R.id.btnClear)).perform(click());
} else {
onView(withText(text)).perform(click()); onView(withText(text)).perform(click());
onView(isRoot()).perform(pressBack());
}
} }
private void changeFilter(@IdRes int resId) {
changeFilter(ApplicationProvider.getApplicationContext().getString(resId));
}*/
private void addEntry(VaultEntry entry) { private void addEntry(VaultEntry entry) {
onView(withId(R.id.fab)).perform(click()); onView(withId(R.id.fab)).perform(click());