Commit 9ebfc49b by Jesse Zoldak

Wait for the Advanced problem tab to be active. Remove the __test__ signifier.

parent 2c8148c7
......@@ -87,6 +87,13 @@ def add_component(page, item_type, specific_type, is_advanced_problem=False):
advanced_tab = page.q(css='.problem-type-tabs a').filter(text='Advanced').first
advanced_tab.click()
# Wait for the advanced tab to be active
css = '.problem-type-tabs li.ui-tabs-active a'
page.wait_for(
lambda: len(page.q(css=css).filter(text='Advanced').execute()) > 0,
'Waiting for the Advanced problem tab to be active'
)
all_options = page.q(css='.new-component-{} ul.new-component-template li button span'.format(item_type))
chosen_option = all_options.filter(text=specific_type).first
chosen_option.click()
......
......@@ -15,8 +15,6 @@ class AdvancedProblemComponentTest(ContainerBase):
Feature: CMS.Component Adding
As a course author, I want to be able to add a wide variety of components
"""
__test__ = True
def setUp(self, is_staff=True):
"""
Create a course with a section, subsection, and unit to which to add the component.
......
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