-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Jonahstanley/upgrade chrome version #516
Conversation
@@ -13,6 +13,10 @@ def create_component_instance(step, component_button_css, category, | |||
|
|||
click_new_component_button(step, component_button_css) | |||
|
|||
def animation_done(_driver): | |||
return world.browser.evaluate_script("$('div.new-component').css('display')") == 'none' | |||
world.wait_for(animation_done) |
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.
I'm getting acceptance test failures here:
Given I have created a Video component # cms/djangoapps/contentstore/features/common.py:208
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lettuce/core.py", line 143, in __call__
ret = self.function(self.step, *args, **kw)
File "/Users/db/dev/edx-platform/cms/djangoapps/contentstore/features/common.py", line 213, in i_created_a_video_component
has_multiple_templates=False
File "/Users/db/dev/edx-platform/cms/djangoapps/contentstore/features/component_settings_editor_helpers.py", line 18, in create_component_instance
world.wait_for(animation_done)
File "/Users/db/dev/edx-platform/common/djangoapps/terrain/ui_helpers.py", line 23, in wait_for
WebDriverWait(world.browser.driver, 5).until(func)
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/support/wait.py", line 71, in until
raise TimeoutException(message)
TimeoutException: Message: ''
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.
This should be fixed... I forgot that one click components do not have animations so I made a check for which component type we are creating
@@ -12,12 +12,17 @@ def create_component_instance(step, component_button_css, category, | |||
has_multiple_templates=True): | |||
|
|||
click_new_component_button(step, component_button_css) | |||
if category == 'problem' or category == 'html': |
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.
Nitpick: it's simpler and clearer to write if category in ('problem', 'html'):
Does that meant that the tests were working or just that you noticed those two issues? |
Just noticed the issues. I can retry the tests now, if you think they will work. |
I think they will. I am pretty sure I fixed those two broken tests you were seeing before |
More errors, but they don't seem related to the lines of code that you changed, so I don't know what to make of them. :(
|
Never mind -- must have been a fluke. I re-ran the tests, and they all passed. |
👍 |
Runs for me on the old version of Chrome as well. 👍 |
Jonahstanley/upgrade chrome version
Feature/fix backbone js
…age-user-certificate-feature Add manage user certificate feature (openedx#516)
…language_nutmeg fix: use language specified in SiteConfiguration [BB-6930]
suggested reviewers: @singingwolfboy @jzoldak
The following features had issues with chrome/chrome driver versions
lms/djangoapps/courseware/features/homepage.feature
cms/djangoapps/contentstore/features/advanced-settings.feature
cms/djangoapps/contentstore/features/html-editor.feature
cms/djangoapps/contentstore/features/problem-editor.feature
cms/djangoapps/contentstore/features/section.feature
cms/djangoapps/contentstore/features/subsection.feature
cms/djangoapps/contentstore/features/upload.feature
cms/djangoapps/contentstore/features/video-editor.feature
cms/djangoapps/contentstore/features/video.feature
In order to fix these, the following things were changed:
These changes were tested in chrome version 28.0.1500.71 and chromedriver 2.1.210398
testing.md was updated accordingly. It is also important to note that this version of chromedriver is compatible with versions 27-30 meaning that it won't work with chrome 26 (what a lot of people might be running) explaining why both need to be updated at once.
All changes that were made should be backwards compatible due to the nature of the changes (since mostly only verification steps were added). world.wait_for is an implicit wait so these tests shouldn't take any longer to run.