-
Notifications
You must be signed in to change notification settings - Fork 96
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
Improved test coverage #665
Conversation
Add slingshot to api-test.clj dependencies
to test-query and test-query-all, to better reflect what they are really testing.
This better reflects what it is doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lemme know whatcha think of my question, Dave.
(let [el (e/query *driver* {:class :foo} {:class :target})] | ||
(is (= "target-2" (e/get-element-text-el *driver* el))))) | ||
(testing "negative test cases" | ||
;; TODO: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dave, this looks like an empty TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not empty, but still marking things that can be improved.
(let [el (e/query *driver* [:enabled-disabled {:type :checkbox :fn/disabled false :fn/index 2}])] | ||
(is (= "checkbox-3" (e/get-element-attr-el *driver* el "id")))))) | ||
(testing "vector syntax" | ||
;; TODO: should check vectors with length 1, 2, and 3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dave I know this is a WIP with more changes to come, when you close up the WIP, please convert any remaining TODOs to git issues if you feel they are important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I can do that. You want me to remove it with another commit to this PR, or just for the future. I'll be filling those in and removing TODOs as I fill them in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, just moving forward is fine.
This PR is filed against #640 but the issue should remain open as there are more tests and PRs coming.
Please complete and include the following checklist:
I have read CONTRIBUTING and the Etaoin Developer Guide.
This PR corresponds to an issue that the Etaoin maintainers have agreed to address.
This PR contains test(s) to protect against future regressions
I have updated CHANGELOG.adoc with a description of the addressed issue.