-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test generator and ui #48
Comments
just some more ideas since i just found this in the docs:
I guess, what I want to do is to give a http adress as the url. since same origin stuff, i would need to open the testrunner from the same adress? since it is possible to give selectors to hover and active, i could also give selectors without state for testing. viewport could be set to rendered height and width of selector. maybe a
As there is a TestRunner.html, there is also a TestGenerator.html. It matches selectors between url markup and cssfile and offers the ui to keep or discard the tests with previews of the selectors. states are also read from the css. plus there is the standard list of elements which can have those states. this would lead to all elements being tested if showing state at all. thinking about it, the css file to match could be extracted from the To avoid long-running tests on inital run, in the api there could be a threshold of maximum area which is to be previewied (default could be really small). Larger tests are not renderd yet. again there is an ui to trigger them and then keep the test or discard. maybe adding http url and plain selectors to the api would be smallest step? in terms of value, the follwing would already enable me to set up many tests in estimatable time:
where selectors-about.yaml is just a flat list:
I'm very aware though that imagining all this stuff is cheap... :/ |
Thanks for the detailed description (and sorry for the late answer). I'd like to think about it further. There are a few initial concerns:
As you say, this is a rather general approach that will provide false positives (and negatives). So we would need to verify this idea with a proof of concept, would we? |
(continuing from twitter)
here is how i imagine it:
after initial set up (which probably needs dev support) a designer can run a generator script against a css file.
this generates tests for all selectors in the file.
a ui lets you pick the tests you want to keep (in the way you already mark failed tests as accepted).
this approach would remove the need for the generator to be intelligent in any way (eg recognize components, as you mentioned).
then again, the script maybe could also be run directly against a selector. that already would be a huge help in setting up initial tests before refactoring.
The text was updated successfully, but these errors were encountered: