Code Monkey home page Code Monkey logo

Comments (5)

nathanstitt avatar nathanstitt commented on September 25, 2024

I like the approach you've setup in #924 (Selenium + coveralls)

How hard is it to spec network requests with Selenium? Some light googling suggests its possible but I've not personally done that before.

I'm think it would be great if we could test "When this input sequence is conducted, a http PUT matching XXX is issued" Selenium gives us the ability to craft the input sequences, but I'm not sure how to spec the network request.

from tutor-js.

gregfitch avatar gregfitch commented on September 25, 2024

Technically, it doesn't...by design. Hackishly you can form the same requests against the running selenium server.

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

Yep, "recording" the requests would be a quick way to create the mock JSON for tests and could be easily updated. Ruby uses vcr/vcr (readme has a list of ports) and I found linkedin/sepia for NodeJS.

For browsers, I created sepia.js a while back to play back cassettes for octokat.js but with some of the recordo code it could record the requests too.

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

From the discussion on selecting things via classes, data- attributes, or :nth-of-type(): from an accessibility angle, would it make sense to default to aria- attributes when selecting things in Selenium?

Of course, those attributes are probably not enough to do things but it would be easier than having entirely separate helpers that navigate through the UI.

Adding accessibility is one of the items for this semester so we'll probably start having tests for it too 😄

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

I think we've done most of the items in this except for using fixtures files. Those could be added with something like https://github.com/philschatz/sepia.js (mentioned above) /cc @nathanstitt since he mentioned the VCR stuff

from tutor-js.

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.