Commit d7ac834
[SDK-115] Re-enable testPushNotificationActionButtons
The previous @ignore reason ("action buttons aren't laid out in the
collapsed shade") was wrong. Dumping the systemui hierarchy from a CI-mode
run shows both action buttons present and clickable in the shade — but
their text is rendered as "GOOGLE" / "DEEPLINK" because systemui applies
Material's textAllCaps to action-button labels. By.text("Google") never
matches.
Tiny helper findActionButton(label) uppercases before lookup. Both action
button paths (URL handler via "Google", custom action handler via
"Deeplink") now pass under the existing Phase B simulated-push path.
Local verification (CI mode):
$ ./gradlew :integration-tests:connectedDebugAndroidTest \
-Pandroid.testInstrumentationRunnerArguments.class=com.iterable.integration.tests.PushNotificationIntegrationTest \
-Pandroid.testInstrumentationRunnerArguments.ci=true
Pixel_3(AVD) - 9 Tests 1/2 completed. (0 skipped) (0 failed)
BUILD SUCCESSFUL
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent bab3c07 commit d7ac834
1 file changed
Lines changed: 7 additions & 4 deletions
File tree
- integration-tests/src/androidTest/java/com/iterable/integration/tests
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | | - | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
141 | | - | |
| 139 | + | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | | - | |
| 159 | + | |
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
| |||
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| |||
0 commit comments