feat(advanced): PER-8195 — advanced example for io.percy:percy-java-selenium#153
Merged
Conversation
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
…percy-java-selenium Adds advanced/ exercising the full applicable Java SDK feature surface. 11 JUnit 5 @test methods in AdvancedTest.java exercising BOTH the typed overloads (snapshot(name, widths, minHeight, enableJavaScript, percyCSS, scope)) AND the Map<String, Object> options overload (responsive, readiness, labels, testCase, devicePixelRatio, browsers, regions, sync). discovery marked N/A — per-build only in this SDK. CI advanced job uses chrome headless + mvn test wrapped in `percy exec --testing` and asserts via the shared helper. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… 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>
…rcy (PER-8195) The advanced Makefile installs @percy/cli with `npm install --no-save` and then runs `$(NPM)/percy` (= advanced/node_modules/.bin/percy). With no advanced/package.json, npm walked up to the repo-root package.json and installed percy into root/node_modules, so advanced/node_modules/.bin/percy was missing and `make test-advanced` failed with "node_modules/.bin/percy: No such file or directory" (exit 127). A minimal advanced/package.json anchors the install to advanced/. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ew-todo (PER-8195) The advanced test's HTTP server rooted at ../ (repo root), which has no index.html, so every test errored in seed() with NoSuchElement for .new-todo (11/11). The TodoMVC frontend lives in src/main/resources — serve that. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
prklm10
approved these changes
Jun 5, 2026
Resolves CodeQL "Workflow does not contain permissions" on test.yml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
pranavz28
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an
advanced/example covering the full applicableio.percy:percy-java-seleniumSDK feature surface. 11 JUnit 5@Testmethods inAdvancedTest.javaexercising BOTH:snapshot(name, widths, minHeight, enableJavaScript, percyCSS, scope)).Map<String, Object> optionsoverload (responsive, readiness, labels, testCase, devicePixelRatio, browsers, regions, sync).discoverymarkedN/A— per-build only in this SDK.Issue: PER-8195.
CI shape
advanced/pom.xml(separate Maven module).AdvancedTest.javainlines a minimalHttpServerso it doesn't need the basic example'sApp.startServer.make test-advanced-cirunsmvn testwrapped inpercy exec --testingand captures/test/requests.@percy/clipinned to^1.31.13vianpm install --no-saveOpen question (D8)
Same shared-helper hosting question.
Test plan
advancedCI job to run green.🤖 Generated with Claude Code