|
1 | 1 | package org.odk.collect.android.regression; |
2 | 2 |
|
3 | | -import static androidx.test.espresso.Espresso.onView; |
4 | | -import static androidx.test.espresso.Espresso.pressBack; |
5 | | -import static androidx.test.espresso.assertion.ViewAssertions.matches; |
6 | | -import static androidx.test.espresso.matcher.ViewMatchers.withText; |
7 | 3 | import static junit.framework.TestCase.assertNotSame; |
8 | | -import static org.odk.collect.androidtest.DrawableMatcher.withImageDrawable; |
9 | | -import static org.odk.collect.testshared.RecyclerViewMatcher.withRecyclerView; |
10 | 4 | import static java.util.Collections.singletonList; |
11 | 5 |
|
12 | 6 | import android.widget.FrameLayout; |
@@ -59,61 +53,6 @@ public void answers_ShouldBeSuggestedInComplianceWithSelectedLetters() { |
59 | 53 | .assertText("Abrotanum alpestre"); |
60 | 54 | } |
61 | 55 |
|
62 | | - @Test |
63 | | - public void sortByDialog_ShouldBeTranslatedAndDisplayProperIcons() { |
64 | | - //TestCase37 |
65 | | - rule.startAtMainMenu() |
66 | | - .openProjectSettingsDialog() |
67 | | - .clickSettings() |
68 | | - .clickOnUserInterface() |
69 | | - .clickOnLanguage() |
70 | | - .clickOnSelectedLanguage("Deutsch") |
71 | | - .clickFillBlankForm() |
72 | | - .clickOnSortByButton() |
73 | | - .assertText("Sortieren nach"); |
74 | | - |
75 | | - onView(withRecyclerView(R.id.recyclerView) |
76 | | - .atPositionOnView(0, R.id.title)) |
77 | | - .check(matches(withText("Name, A-Z"))); |
78 | | - |
79 | | - onView(withRecyclerView(R.id.recyclerView) |
80 | | - .atPositionOnView(0, R.id.icon)) |
81 | | - .check(matches(withImageDrawable(R.drawable.ic_sort_by_alpha))); |
82 | | - |
83 | | - onView(withRecyclerView(R.id.recyclerView) |
84 | | - .atPositionOnView(1, R.id.title)) |
85 | | - .check(matches(withText("Name, Z-A"))); |
86 | | - onView(withRecyclerView(R.id.recyclerView) |
87 | | - .atPositionOnView(1, R.id.icon)) |
88 | | - .check(matches(withImageDrawable(R.drawable.ic_sort_by_alpha))); |
89 | | - |
90 | | - onView(withRecyclerView(R.id.recyclerView) |
91 | | - .atPositionOnView(2, R.id.title)) |
92 | | - .check(matches(withText("Datum, neuestes zuerst"))); |
93 | | - |
94 | | - onView(withRecyclerView(R.id.recyclerView) |
95 | | - .atPositionOnView(2, R.id.icon)) |
96 | | - .check(matches(withImageDrawable(R.drawable.ic_access_time))); |
97 | | - |
98 | | - onView(withRecyclerView(R.id.recyclerView) |
99 | | - .atPositionOnView(3, R.id.title)) |
100 | | - .check(matches(withText("Datum, ältestes zuerst"))); |
101 | | - |
102 | | - onView(withRecyclerView(R.id.recyclerView) |
103 | | - .atPositionOnView(3, R.id.icon)) |
104 | | - .check(matches(withImageDrawable(R.drawable.ic_access_time))); |
105 | | - |
106 | | - pressBack(); |
107 | | - pressBack(); |
108 | | - |
109 | | - new MainMenuPage() |
110 | | - .openProjectSettingsDialog() |
111 | | - .clickSettings() |
112 | | - .clickOnUserInterface() |
113 | | - .clickOnLanguage() |
114 | | - .clickOnSelectedLanguage("English"); |
115 | | - } |
116 | | - |
117 | 56 | @Test |
118 | 57 | public void searchExpression_ShouldDisplayWhenItContainsOtherAppearanceName() { |
119 | 58 | //TestCase26 |
|
0 commit comments