You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration-tests/src/androidTest/java/com/iterable/integration/tests/PushNotificationIntegrationTest.kt
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,6 @@ import org.json.JSONObject
17
17
importorg.junit.After
18
18
importorg.junit.Assert
19
19
importorg.junit.Before
20
-
importorg.junit.Ignore
21
20
importorg.junit.Test
22
21
importorg.junit.runner.RunWith
23
22
importjava.util.concurrent.TimeUnit
@@ -113,7 +112,6 @@ class PushNotificationIntegrationTest : BaseIntegrationTest() {
113
112
}
114
113
115
114
@Test
116
-
@Ignore("SDK-115 follow-up: action buttons aren't laid out in the collapsed notification shade; UiAutomator can't reliably expand it. Re-enable with an expand-on-find helper.")
117
115
funtestPushNotificationActionButtons() {
118
116
Assert.assertTrue("User should be signed in", testUtils.ensureUserSignedIn(TestConstants.TEST_USER_EMAIL))
119
117
Assert.assertTrue("Notification permission should be granted", hasNotificationPermission())
@@ -135,7 +133,7 @@ class PushNotificationIntegrationTest : BaseIntegrationTest() {
135
133
Assert.assertNotNull("Notification should be found", findNotification())
136
134
137
135
resetUrlHandlerTracking()
138
-
val googleButton =uiDevice.findObject(By.text("Google"))
136
+
val googleButton =findActionButton("Google")
139
137
Assert.assertNotNull("Google button should be found", googleButton)
140
138
googleButton?.click()
141
139
Thread.sleep(2000)
@@ -155,7 +153,7 @@ class PushNotificationIntegrationTest : BaseIntegrationTest() {
155
153
Assert.assertNotNull("Notification should be found", findNotification())
156
154
157
155
resetCustomActionHandlerTracking()
158
-
val deeplinkButton =uiDevice.findObject(By.text("Deeplink"))
156
+
val deeplinkButton =findActionButton("Deeplink")
159
157
Assert.assertNotNull("Deeplink button should be found", deeplinkButton)
160
158
deeplinkButton?.click()
161
159
Thread.sleep(2000)
@@ -239,6 +237,12 @@ class PushNotificationIntegrationTest : BaseIntegrationTest() {
239
237
returnnull
240
238
}
241
239
240
+
// systemui pre-API-31 applied Material's textAllCaps to action-button labels
241
+
// ("Google" → "GOOGLE"); API 31+ stopped doing so. Match either rendering.
0 commit comments