-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Studio: Adds HTML5 data-* Attributes as Test Logic Hooks (WIP - DO NOT MERGE) #1780
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
Conversation
|
@jzoldak and @wedaly, this is some quick work I thought about on the way home and after comparing notes with another designer/FED colleague - my hopes is that it can help you and the UI-focused tests that are written have more solid HTML hooks that will not change even if we cosmetically need to change classes or even HTML elements themselves. Let me know if you have a few to chat about the idea, if it helps you at all, and what other UI elements or states (errors, confirmations, etc.) would be good to also formalize into data-* attribute patterns. |
|
@frrrances and @marcotuts, let me know if you guys agree with this approach as well. |
|
This looks great! There may be additional future work around seeing which of our views have these attributes and which don't, but that doesn't seem to be a requirement necessarily in my mind. Thoughts? |
|
@talbs This is awesome. Here's our end to end testing repo where we've started to the new bok-choy framework. We're working on getting the page object definitions into Will's branch in the edx-platform repo, and leveraging them with both the old (lettuce) and the new (bok-choy) browser-level tests. Look in the selenium_pages folder under cms and lms. In general, what is helpful is:
|
|
Nice work, Brian. I think this is a great idea and I second @marcotuts's suggestions. Let me know if I can help at all. |
|
Nice! I second @marcotuts 's suggestion to document this: it would be nice to have a consistent guide for the LMS team to use. In addition to the items @jzoldak listed, the pain points for me are:
|
|
What's the status of this pull request? Is it actively being worked on, or can it be closed? |
|
@singingwolfboy, thanks for the follow-up. I'm still working on this branch (1 part documentation and philosophy review, which I think you'll be involved in shortly and 1 part implementing these new HTML attributes once that review is complete). I'll close it for the time being and re-open once I have implementation to be reviewed and merged. |
* Fix mail message for create_certs openedx#1772, openedx#1773 * Fix review
This experimental work aims to help the test engineering group with more solid (and less often to be edited) HTML attributes to use as points of logic when writing interface/state tests.
Currently the attributes added include:
Other suggestions are welcome and I will reach out to @jzoldak and @wedaly to see what other UI hooks (elements/states) might be useful to make.