Wait for js to finish loading before trying to click on advanced settings

This commit is contained in:
Calen Pennington
2018-04-11 13:26:37 -04:00
parent 04a5d3c7c6
commit 3c85de030d
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ DEPRECATED_SETTINGS = ["CSS Class for Course Reruns", "Hide Progress Tab", "XQA
@step('I select the Advanced Settings$')
def i_select_advanced_settings(step):
world.wait_for_js_to_load()
world.wait_for_js_variable_truthy('window.studioNavMenuActive')
world.click_course_settings()
# The click handlers are set up so that if you click <body>

View File

@@ -97,6 +97,8 @@ define([
});
dropdownMenuView.postRender();
}
window.studioNavMenuActive = true;
});
function smoothScrollLink(e) {