-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Image was NaN% different from saved snapshot with undefined different pixels." #52
Comments
Hmm, I wonder if this was introduced by #51 Can you try |
Just tried with 9.0.0 and 9.0.1, same issue. |
I can confirm this error within our project. Versions:
Print out of the task Matching image snapshot: { Print out of the task Recording snapshot result: EMPTY_OBJECT Questions
|
That would relate to this part - https://github.com/simonsmith/cypress-image-snapshot?tab=readme-ov-file#snapshot-paths |
Hi @simonsmith and Thank you for wonderful lib. I just found out that if Any suggestion for this? My cypress config: import { defineConfig } from 'cypress'
import createBundler from "@bahmutov/cypress-esbuild-preprocessor";
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
import createEsbuildPlugin from "@badeball/cypress-cucumber-preprocessor/esbuild";
import { addMatchImageSnapshotPlugin } from '@simonsmith/cypress-image-snapshot/plugin'
export default defineConfig({
video: false,
e2e: {
specPattern: "**/*.feature",
"baseUrl": "https://local-ditto.devel.kakao.com/",
env: {
"ALLOW_SNAPSHOT": process.env.ALLOW_SNAPSHOT === undefined ? false : true
},
trashAssetsBeforeRuns: false,
async setupNodeEvents(on, config) {
addMatchImageSnapshotPlugin(on)
await addCucumberPreprocessorPlugin(on, config);
on(
"file:preprocessor",
createBundler({
plugins: [createEsbuildPlugin(config)],
})
);
return config
}
},
}) |
@eddie0329 Sounds like #50 |
Hi,
I get "Image was NaN% different from saved snapshot with undefined different pixels." error with following settings:
Windows 10 / vscode
Cypress version: 13.7.2 (same error with 13.2.0)
@simonsmith/cypress-image-snapshot: 9.0.2
cypress-image-snapshot is the only plugin I'm using (cf: #26)
// cypress.config.ts
commands.ts
tsconfig.ts
package.json
TestFile.cy.ts
I have /cypress/screenshots/snap-test.png created with
"Image was NaN% different from saved snapshot with undefined different pixels."
I have the same results with script
"cypress open",
The text was updated successfully, but these errors were encountered: