Skip to content

add selenium tests #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

Closed

Conversation

isabelrios
Copy link
Collaborator

No description provided.

@isabelrios
Copy link
Collaborator Author

@mcav please if you have time to review this PR and add it to the repo, we will have some tests that can be run.
It is a first approach, we will iterate and improve the code.
Any feedback is more than welcome.
Thanks!

@mcav
Copy link
Contributor

mcav commented Jan 26, 2017

This is a fine start, thanks. There's an important issue we should address before these are going to be useful, though: As you discovered, the element selectors are horrible, horrible, horrible (due to there not being any accessible class names on elements), and they may not even be deterministic. That will very quickly render these tests obsolete. I've noted this in issue #21.

You're welcome to merge this if you'd like (for the sake of getting the files in the repo), but I have a feeling they will all break (if they haven't already) due to xpath selector changes very quickly until we fix #21. I can make that a priority right after this sprint.

@isabelrios
Copy link
Collaborator Author

Thanks @mcav! Yeah the way to find the selectors is an issue, but thought that asking for an id for each element was a big workload for you and if we can use xpath or css selector in the meantime could work while there are not big changes in the website. It is true that tests fail easily due to the changes in xpath, that is why I did not want to add them to CI yet, but only to the repo to be run manually, so we (QA) could work on the same scenario to create more tests (although we have to change the selectors from time to time) but this would help us to improve the code and coverage.

I will close this PR since I am working on a better version of the tests following the Page Object pattern. That way the elements are defined in one file and not in the tests which will help to maintain them in case of changes. And also it makes the tests to be more easy to read and run faster :)

Thanks!

@isabelrios isabelrios closed this Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants