Replies: 1 comment 3 replies
-
|
@slokerqe can you share full unedited logs as well? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@percy/cli -> 1.20.0
receiving this message:
2023-02-21T05:53:24.3702098Z [percy] Invalid snapshot options:
2023-02-21T05:53:24.3702791Z [percy] - domSnapshot: missing required property
2023-02-21T05:53:25.1644208Z [percy] Snapshot taken: <my_custom_snapshot_name>
*After execution, Percy's build includes empty snapshots
Please Note, I've downgraded to 1.18.0 and all works as expected
plugins {
id 'java'
}
sourceCompatibility = 1.11
targetCompatibility = 1.11
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'io.percy', name: 'percy-java-selenium', version: '1.2.0'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.9.1'
testImplementation group: 'com.codeborne', name: 'selenide', version: '6.11.2'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.6'
}
tasks.withType(Test).configureEach {
systemProperty('selenide.browser', 'chrome')
systemProperty('selenide.fastSetValue', 'true')
systemProperty('selenide.browserSize', '1920x1080')
}
package.json:
{
"private": true,
"devDependencies": {
"@percy/cli": "1.20.0"
}
}
percy snapshot command:
new Percy(WebDriverRunner.getWebDriver()).snapshot(snapshotName);
percy yml:
version: 2
snapshot:
percy-css: |
input[formcontrolname=""] {
display: none;
}
discovery:
disable-cache: true
upload:
files: "/.{png,jpg,jpeg}"
ignore: ""
stripExtensions: false
percy exec command:
npx percy exec -- ./gradlew clean {name of suite}
That is how snapshot looks like

Beta Was this translation helpful? Give feedback.
All reactions