Commit 1e51bd73 by JonahStanley

Fixed flakey navigation tests by changing css

Now only check for the css that appears when the accordion is done
parent 033b9740
......@@ -83,9 +83,9 @@ def click_on_section(step, section):
world.css_click(section_css)
subid = "ui-accordion-accordion-panel-" + str(int(section) - 1)
subsection_css = 'ul[id="%s"]> li > a' % subid
subsection_css = 'ul.ui-accordion-content-active[id=\'%s\'][aria-expanded=\'true\']> li > a' % subid
#for some reason needed to do it in two steps
world.css_find(subsection_css).click()
world.css_click(subsection_css)
@step(u'I click on subsection "([^"]*)"$')
......
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