[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.
This commit is contained in:
Ben Patterson
2016-01-24 09:54:32 -05:00
parent 30b5cebccd
commit d7be722ce7

View File

@@ -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']).\