Comments (5)
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.
Technically, it doesn't...by design. Hackishly you can form the same requests against the running selenium server.
from tutor-js.
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.
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.
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)
- A&P course coming soon feedback
- Ancillary Resources in REX
- Spike- Tutor for Rex questions
- SPIKE: Remove manual trigger from ABL pull?
- Data request and metabase access HOT 2
- Release exercises to fix search error
- Release 18.11- shuffle
- Remove AMGov reference at log in
- Puerto Rico instructor unable to create a course
- Tutor Release - 1/19/2022
- Resolve broken exercise search (by section) HOT 1
- Tutor Page has format issue
- Automated User Errors reported to CS Q2 2022
- Automated User Errors reported to CS Q3 2022
- Automated User Errors reported to CS Q4 2022 HOT 1
- Automated User Errors reported to CS Q1 2023
- Exercises release
- Automated User Errors reported to Customer Support Q2 2023
- Automated User Errors reported to Customer Support Q3 2023
- Automated User Errors reported to Customer Support Q4 2023
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutor-js.