Skip to content

[SDK-115] Push Action Buttons#1063

Open
franco-zalamena-iterable wants to merge 1 commit into
SDK-115-followup-push-testfrom
SDK-115-followup-push-action-buttons
Open

[SDK-115] Push Action Buttons#1063
franco-zalamena-iterable wants to merge 1 commit into
SDK-115-followup-push-testfrom
SDK-115-followup-push-action-buttons

Conversation

@franco-zalamena-iterable
Copy link
Copy Markdown
Contributor

@franco-zalamena-iterable franco-zalamena-iterable commented Jun 2, 2026

🔹 Jira Ticket(s) if any

✏️ Description

This pr introduces the Push Action Buttons tests from BCIT on CI

@franco-zalamena-iterable franco-zalamena-iterable changed the base branch from master to SDK-115-bcit-ci June 2, 2026 11:01
@franco-zalamena-iterable franco-zalamena-iterable changed the base branch from SDK-115-bcit-ci to SDK-115-followup-push-test June 2, 2026 11:01
@franco-zalamena-iterable franco-zalamena-iterable changed the title [SDK-115] Push Action Buttons PR [SDK-115] Push Action Buttons Jun 2, 2026
@franco-zalamena-iterable franco-zalamena-iterable force-pushed the SDK-115-followup-push-action-buttons branch from d7ac834 to a1d701e Compare June 2, 2026 17:30
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>
@franco-zalamena-iterable franco-zalamena-iterable force-pushed the SDK-115-followup-push-action-buttons branch from a1d701e to 475aec8 Compare June 2, 2026 20:30
Copy link
Copy Markdown
Contributor

@sumeruchat sumeruchat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. CI is green on this HEAD (BCIT 34: 10 run, 1 skipped, 0 failed) with the action-buttons test active. Nice catch on the textAllCaps casing difference across API levels.

Two non-blocking notes: findActionButton has no wait and leans on the 2s sleep after openNotification, so polling up to the notification timeout would harden it against intermittent flake; and ensureUserSignedIn(TestConstants.TEST_USER_EMAIL) logs the stable email in CI, use testUserEmail to match #1061/#1062.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants