mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-26 08:46:07 +00:00
Add group filter back in the UI tests
This commit is contained in:
parent
e2ddc8a80f
commit
77f59d41ad
1 changed files with 10 additions and 11 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Reference in a new issue