Add Cucumber step definitions for Percy visual testing#309
Open
neha-sanse wants to merge 3 commits intomasterfrom
Open
Add Cucumber step definitions for Percy visual testing#309neha-sanse wants to merge 3 commits intomasterfrom
neha-sanse wants to merge 3 commits intomasterfrom
Conversation
Add PercySteps class providing Gherkin step definitions for: - Percy Snapshot (DOM): widths, min height, percy CSS, scope, layout mode, JavaScript, labels, test case, responsive capture - Percy Screenshot (Automate): with options and regions - Create Percy Region: ignore/consider/intelliignore by CSS, XPath, bounding box, with diff sensitivity and padding - Data table support for arbitrary options Cucumber dependency is provided scope - users bring their own version. Includes unit tests for all step definitions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add setClientInfo/setEnvironmentInfo to Percy and Environment classes - PercySteps sets client to "percy-cucumber-java-selenium/<version>" and environment to "cucumber-java/<version>; selenium-java" - Add Percy.getSdkVersion() public static method Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add ignore/consider region with padding - Add consider region with XPath (+ diff sensitivity) - Add intelliignore region with XPath - Add snapshot steps: Shadow DOM disabled, responsive capture, sync - Add scopeOptions parsing in buildOptions helper Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
PercyStepsclass inio.percy.selenium.cucumberpackage with Gherkin step definitions for Percy Snapshot, Screenshot (Automate), and Create Percy Regionprovidedscope -- users bring their own Cucumber versionCucumber Steps
Snapshot (DOM)
Screenshot (Automate)
Regions
Setup
Test plan
🤖 Generated with Claude Code