Skip to content

test(android): reveal smoke canaries by visibility - #2369

Merged
thymikee merged 1 commit into
mainfrom
fix/android-smoke-canary-visibility
Sep 7, 2026
Merged

test(android): reveal smoke canaries by visibility#2369
thymikee merged 1 commit into
mainfrom
fix/android-smoke-canary-visibility

Conversation

@thiagobrez

@thiagobrez thiagobrez commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The Android automation smoke scrolls a fixed 0.7 after rotation and overshoots automation-press, then fails before dispatching input. The repeated failure on #2362 retains failed-step-34.png showing the button above the viewport.

Reset the route to its top after rotation, then check semantic visibility between bounded small scrolls. Use the same positioning for input outcomes, the alert, and the diff baseline. Keep all existing outcome assertions. Two test files change; no runtime or retry-policy changes.

Validation

At 6211bfc3f15789fbb8cf5fd5907d399a7dd58d54, pnpm check:affected --run passes (format, lint, typecheck; no related Vitest tests selected). The hosted Android smoke passes, including the automation-system scenario and Settings replay. CI/coverage, integration, Linux/macOS smoke and all other checks are green. Prepared separately to preserve the iOS cold-start comparison at #2362's current SHA.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 4.50 MB 4.50 MB 0 B
Package (unpacked) 4.50 MB 4.50 MB 0 B
Package (download) 1.33 MB 1.33 MB -11 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 29.5 ms 30.5 ms +1.1 ms
CLI --help 84.0 ms 83.2 ms -0.8 ms

@thiagobrez
thiagobrez marked this pull request as ready for review September 6, 2026 21:43
Copilot AI lite review requested due to automatic review settings September 6, 2026 21:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is isolated to integration test scaffolding, uses existing CLI primitives (scroll top, is visible), and is supported by the cited hosted Android smoke pass.

Pull request overview

This PR stabilizes the Android emulator live automation smoke by avoiding a fixed large scroll after rotation and instead restoring the route to the top and revealing canary elements via semantic visibility checks with bounded small scrolls.

Changes:

  • Add scrollToVisibleSelector() helper to probe is visible and scroll in small increments until the selector is semantically visible.
  • Update the Android live automation scenario to restore scroll position after rotation and to align all input/outcome/alert baseline positioning via the new helper.
File summaries
File Description
test/integration/android-emulator-e2e/live-automation-scenario.ts Replaces fixed scrolls with “scroll-to-visible” positioning around canary interactions and baseline capture.
test/integration/android-emulator-e2e/live-assertions.ts Introduces scrollToVisibleSelector() helper used by the smoke scenario to reveal elements deterministically.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@thymikee

thymikee commented Sep 6, 2026

Copy link
Copy Markdown
Member

Looks good at 6211bfc. The smoke test now confirms visibility before acting, keeps the existing outcome assertions, and stops on unexpected errors. Hosted Android smoke and the remaining checks pass.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Sep 6, 2026
@thymikee
thymikee merged commit 5ba4ac7 into main Sep 7, 2026
18 checks passed
@thymikee
thymikee deleted the fix/android-smoke-canary-visibility branch September 7, 2026 06:03
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-07 06:03 UTC

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

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants