Jonahstanley/firefox acceptance tests - #594
Conversation
There was a problem hiding this comment.
Is there a risk of a StaleElement exception here?
There was a problem hiding this comment.
Yup... I changed both to use css_value instead. However, I am keeping this line so I can get the list of how many elements (but not access them there)
|
Good work getting these running in Firefox! Main points:
In extreme cases (where the differences are very small and not likely to get fixed), then we should weaken the test expectations so they verify the same (correct, but less specific) behavior on all browsers. |
|
I have addressed all of the comments as well as updated the PR with the expected firefox failures. As far as relaxing the test expectations, I think this only makes sense for the max_attempts ones in problem-editor.py as that is the only true implementation difference in firefox and chrome. The rest are weird firefox issues |
…irefox as well as check if it is firefox
Removed set traces
Added comment Removed set_trace
|
👍 |
|
👍 |
Jonahstanley/firefox acceptance tests
…istinguish_instructors Feature/ibrahim/discussion distinguish instructors
Version bump problem-builder
…-merge-achievement Implements ga_achievement openedx#578, openedx#594
…update Update xblock SHAs for max_score progress page
fix show course title on info page
…enedx#594) Co-authored-by: Renovate Bot <bot@renovateapp.com>
Suggested reviewers: @wedaly @jzoldak
Making a pull request so that this can be merged in and I can work on fixing the remaining tests separately and tests in firefox can begin (and start catching more bugs). In order to run the acceptance tests in firefox, set LETTUCE_BROWSER = 'firefox' in acceptance.py or the browser_driver to 'firefox' in browser.py.
With these changes, only the following will not work in firefox and are marked:
The following things were added in order to get the acceptance tests to run on firefox:
These tests were verified to still work with the latest version of chrome and chrome driver. The version of firefox that was tested was 22.0 and 23.0. The tests were run on both ubuntu and mac OS with the same results
One other major issue is that firefox will not fire certain events if firefox is not the active window. As far as I know, this will only affect the LaTex scenario in problem-editor.feature, the testing automatic quoting in advanced-settings.feature and some of the video alpha tests. Splinter will start the firefox browser as the active window. However, this means that it needs to remain the active window making testing a pain due to not being able to run in the background. Also, this will have implications on running multiple acceptance tests in parallel on firefox as only one of them can be in the foreground.
When this is ready to be merged, I would like to run this branch once in jenkins to verifiy that I did not introduce anything as this is a larger pull request.
AS OF LATE:
The only errors in the test suite for firefox are in the following features:
cms/checklists.feature - due to firefox not being able to make links active afftecting those two scenarios
lms/login.feature - due to firefox having a weird redirect issue only when the whole suite is run
lms/signup.feature - due to firefox having a weird redirect issue only when the whole suite is run