Git Product home page Git Product logo

Comments (4)

garris avatar garris commented on August 15, 2024

Your hunch is right. You can learn how to do these kinds of tests in the Casper docs.

from backstopjs.

malcomio avatar malcomio commented on August 15, 2024

This article might be useful: https://helloanselm.com/2014/testing-css-states-with-phantomcss/

Ideally there'd be some documentation on setting up these tests within the backstop.json file.

from backstopjs.

lewisnyman avatar lewisnyman commented on August 15, 2024

I wonder if this moves beyond the config-only simplicity of BackstopJS. If you want to test interactions, you need to write scripts, I think a much better tool would be PhantomCSS.

from backstopjs.

garris avatar garris commented on August 15, 2024

@malcomio @lewisnyman Totally completely agree with Lewis on this. I even mention PhantomCSS as a great tool for that kind of thing in this article... http://davidwalsh.name/visual-regression-testing-angular-applications

That said, I think the interactivity makes sense in some limited contexts -- like where you might want to wait-for-and-then-dismiss (e.g. click 'cancel') an email signup popup that overlays every single page (or app state) for all first time visitors. This is not so much because I want to test the interaction -- but the interaction is a dependency of the tests I want to do. Hope that makes sense...

For that reason it might be very helpful to be able to somehow include-or-require arbitrary casper code -- but I'd really want to draw the line at duplicating PhantomCSS functionality or use cases.

from backstopjs.

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.