Commit a1d701e
[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 4a6dd2d commit a1d701e
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 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
138 | | - | |
| 136 | + | |
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
| |||
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
158 | | - | |
| 156 | + | |
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
| |||
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
0 commit comments