Skip to content

Commit f930ae1

Browse files
committed
feat(ci): fix ui tests for firebase
1 parent 987ccfe commit f930ae1

File tree

3 files changed

+108
-120
lines changed

3 files changed

+108
-120
lines changed

sample/src/androidTest/kotlin/io/github/kakaocup/sample/TestActivityTest.kt

-18
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class TestActivityTest {
3131
}
3232

3333
textViewLarge {
34-
scrollTo()
3534
click()
3635
isVisible()
3736
hasText("LARGE")
@@ -41,7 +40,6 @@ class TestActivityTest {
4140
}
4241

4342
textViewSmall {
44-
scrollTo()
4543
isVisible()
4644
hasText("small")
4745
isCompletelyBelow {
@@ -50,13 +48,11 @@ class TestActivityTest {
5048
}
5149

5250
textViewHint {
53-
scrollTo()
5451
isVisible()
5552
hasHint("hint")
5653
}
5754

5855
buttonViewLeft {
59-
scrollTo()
6056
isVisible()
6157
hasText("left")
6258
isCompletelyLeftOf {
@@ -65,7 +61,6 @@ class TestActivityTest {
6561
}
6662

6763
buttonViewRight {
68-
scrollTo()
6964
isVisible()
7065
hasText("right")
7166
isCompletelyRightOf {
@@ -74,7 +69,6 @@ class TestActivityTest {
7469
}
7570

7671
textViewSmall {
77-
scrollTo()
7872
isVisible()
7973
hasText("small")
8074
isCompletelyBelow {
@@ -83,46 +77,38 @@ class TestActivityTest {
8377
}
8478

8579
textViewColored {
86-
scrollTo()
8780
hasTextColor(R.color.background_color)
8881
}
8982

9083
map {
91-
scrollTo()
9284
click()
9385
hasAnyTag("test_tag", "non_test_tag")
9486
}
9587

9688
multiTypeRecycler {
97-
scrollTo()
9889
hasText("MULTI TYPE RECYCLER")
9990
}
10091

10192
singleTypeRecycler {
102-
scrollTo()
10393
hasText("SINGLE TYPE RECYCLER")
10494
}
10595

10696
autoComplete {
107-
scrollTo()
10897
hasText("AUTO_COMPLETE")
10998
}
11099

111100
ratingbar {
112-
scrollTo()
113101
hasRating(0f)
114102
setRatingAt(3f)
115103
hasRating(3f)
116104
}
117105

118106
snackbarButton {
119-
scrollTo()
120107
click()
121108
}
122109

123110
snackbar {
124111
isDisplayed()
125-
126112
text { hasText("This is snackbar!") }
127113
action {
128114
hasText("DISMISS")
@@ -134,14 +120,12 @@ class TestActivityTest {
134120
}
135121

136122
seekbar {
137-
scrollTo()
138123
hasProgress(70)
139124
dragProgressTo(30)
140125
hasProgress(30)
141126
}
142127

143128
switch {
144-
scrollTo()
145129
isChecked()
146130
click()
147131
isNotChecked()
@@ -156,7 +140,6 @@ class TestActivityTest {
156140
}
157141

158142
switchCompat {
159-
scrollTo()
160143
isChecked()
161144
click()
162145
isNotChecked()
@@ -175,7 +158,6 @@ class TestActivityTest {
175158
}
176159

177160
searchView {
178-
scrollTo()
179161
hasHint("This is the HINT!")
180162
hasHint(R.string.hint)
181163
typeQuery("Hello")

sample/src/main/res/layout/activity_alert_dialog.xml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
android:layout_height="match_parent"
55
android:orientation="vertical">
66

7+
<!--Firebase API 29 emulator showing "Device is managed by your organization pop-up and overlapping buttons"-->
8+
<View
9+
android:layout_width="match_parent"
10+
android:layout_height="100dp" />
11+
712
<Button
813
android:id="@+id/show_alert_dialog"
914
android:layout_width="match_parent"

0 commit comments

Comments
 (0)