Commit d7be722c by Ben Patterson

[firefox upgrade] Wait for code mirror editor to be active

Not an issue for our tests on firefox 28; however, once we upgrade to
Firefox 42 (or later), a new wait condition is needed here. Otherwise,
the content is not set because selenium's action chain is starting too
early.
parent 30b5cebc
......@@ -55,6 +55,7 @@ class HtmlComponentEditorView(ComponentEditorView):
"""
self.q(css=self.editor_mode_css).click()
self.q(css='[aria-label="Edit HTML"]').click()
self.wait_for_element_visibility('.mce-title', 'Wait for CodeMirror editor')
#Focus goes to the editor by default
ActionChains(self.browser).send_keys([Keys.CONTROL, 'a']).\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment