Git Product home page Git Product logo

Comments (3)

wswebcreation avatar wswebcreation commented on May 29, 2024

Hi @smichaelsen

This is kinda strange, this is a screenshot on the same OS and browser combination with the same resolution of the browser in the same session?

I'm pretty sure this is due to the environment / coding issue and not due to the module because the module only takes a screenshot of the current viewport.
Can you share an instance of Browserstack which I can view to see what happens?

from visual-testing.

smichaelsen avatar smichaelsen commented on May 29, 2024

We were able to fix this by putting browser.maximizeWindow(); into every test. Doesn't feel great, but it works.

from visual-testing.

wswebcreation avatar wswebcreation commented on May 29, 2024

Hi @smichaelsen

Why not use something like this https://github.com/wswebcreation/wdio-image-comparison-service/blob/master/tests/configs/wdio.shared.conf.js#L43
Then your test will always have the same dimensions for every browser.

Going to close this issue because you found the root cause, but it's still open for discussion

from visual-testing.

Related Issues (20)

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.