Skip to content

feat(advanced): PER-8195 — advanced example for percy-selenium (Python)#22

Open
Shivanshu-07 wants to merge 3 commits into
masterfrom
per-8195-phase-1-selenium-python
Open

feat(advanced): PER-8195 — advanced example for percy-selenium (Python)#22
Shivanshu-07 wants to merge 3 commits into
masterfrom
per-8195-phase-1-selenium-python

Conversation

@Shivanshu-07
Copy link
Copy Markdown

@Shivanshu-07 Shivanshu-07 commented May 21, 2026

Summary

Adds an advanced/ example covering the full applicable percy-selenium Python SDK feature surface. 11 pytest functions in tests/test_todomvc_advanced.py, one per matrix row: widths, min_height, enable_javascript, responsive_snapshot_capture, readiness, sync, labels, test_case, device_pixel_ratio, browsers, plus a snake_case + camelCase dual-naming demo.

scope, dom_transformation, regions, per-snapshot discovery marked N/A — not exposed as kwargs in percy-selenium 2.1.2.

Issue: PER-8195.

CI shape

  • python 3.11 + firefox + selenium-webdriver
  • make test-advanced-ci runs pytest tests/ wrapped in percy exec --testing and captures /test/requests
  • shared assertion helper (D8 placeholder URL)
  • @percy/cli pinned to ^1.31.13 via npm install --no-save

Open question (D8)

Same shared-helper hosting question.

Test plan

  • Wait for the advanced CI job to run green.
  • Verify matrix-row coverage assertion exits 0.

🤖 Generated with Claude Code

Shivanshu-07 and others added 2 commits May 20, 2026 10:52
Phase 1 stub for PER-8195 (advanced example for every Percy SDK sample
repo). matrix.yml populated from SDK API research, README placeholder
notes test code is TO BE WRITTEN.

Carries the Phase 0 pattern: per-SDK matrix.yml is the canonical
machine-readable source of truth; advanced/README.md table + the
aggregate docs/advanced-example-feature-matrix.md grid are generated
downstream.

No test code committed — needs per-SDK smoke-test validation against
the matching SDK toolchain (next step). Most rows currently 'Planned';
some 'Covered' rows reflect behavior automatic via the basic SDK usage
(cross-origin iframe handling, cookie capture, environmentInfo).

See parent: docs/plans/2026-05-19-001-feat-per-8195-advanced-sdk-examples-plan.md
…enium (Python)

Adds advanced/ exercising the full applicable percy-selenium Python SDK
feature surface. 11 pytest functions in tests/test_todomvc_advanced.py,
one per matrix row: widths, min_height, enable_javascript,
responsive_snapshot_capture, readiness, sync, labels, test_case,
device_pixel_ratio, browsers, snake_case + camelCase dual-naming demo.

scope, dom_transformation, regions, discovery marked N/A — not exposed
as kwargs in percy-selenium 2.1.2.

CI advanced job uses firefox + selenium-webdriver + `percy exec
--testing` and asserts via the shared helper.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread .github/workflows/test.yml Fixed
@Shivanshu-07 Shivanshu-07 marked this pull request as ready for review May 27, 2026 13:41
@Shivanshu-07 Shivanshu-07 requested a review from a team as a code owner May 27, 2026 13:41
… helper (PER-8195)

The advanced job fetched an assertion helper from
percy/percy-public-repos-parent/main/scripts/ — that repo is private and the
script was never published, so curl -f 404d and failed every advanced run.

Master has no --testing mode / matrix-coverage gate; it just runs the spec
under percy exec with the repo PERCY_TOKEN. Mirror that: run the advanced
suite (which already wraps percy exec) with PERCY_TOKEN, dropping the jq/yq
install, the external curl helper, the --testing /test/requests capture, and
the matrix assertion.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment on lines +39 to +59
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: advanced
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install percy CLI
run: npm install --no-save @percy/cli@^1.31.13
- name: Install advanced/ python dependencies
run: make install
- name: Run advanced tests
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: make test-advanced
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