Code Monkey home page Code Monkey logo

cypress-odiff's People

Contributors

odai-alali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jradelmo

cypress-odiff's Issues

Update peer dependencies related Cypress

Right now the peerDependencies lists

"peerDependencies": {
"cypress": "10.0.3"
}
so there is a dependency warning if you are using a newer major version of cypress 10.7.0
I would propose changing it to ^n if there are no issues.

thanks so much!

Why does system appends additional path with the configured path of the screenshot?

image

As per above screenshot, I have set the directory for the snapshot as customSnapshotsDir: "cypress/snapshots"

But when system adds additional sub-folders into that directory like \cypress\e2e\features and then stores the the screenshot in particular test folder.

image

I don't want these additional sub-folders: \cypress\e2e\features into the configured directory.

All the screenshot should be stored like \cypress\snapshots\test1.feature\<test-screenshots>

Is there anyway I can store the screenshot directly into the configured directory as per configuration under command.js

How do I integrate `.diff` screenshot with the cucumber report

I am using cypress10 with cucumber hence I use multiple-cucumber-html-reporter ,
When there is difference between actual and expected image, it just shows the error like Screenshots does not match. 263553 pixels difference (29.1049943403%) and attach the actual screenshot.

I also want to attach the .diff screenshot with report.

Is there anyway we can attach the failing screenshot with multiple-cucumber-html-reporter ?

Below is my package.json & cypress.config.js

package.json
image

cypress.config.js
image

Do we have retry parameter while comparing screenshot?

Do we have retry functionality while comparing the screenshot? We should have feature for retry while taking the screenshot,
Could you please introduce a new parameter as retry under compareOptions like below:

addCompareScreenshotCommand({
    pluginOptions: {
        customSnapshotsDir: "cypress\\snapshots"
    },
    compareOptions:{
        threshold:0.3
        retry: 2
    }
   
});

Is there anyway we can compare specific element?

It looks like this plugin only compare the whole screen.
Is there any way we can compare only specific element on the screen like below:

cy.get("#screen-canvas-container").compareScreenshot();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.