Commit a1a9f3bd by Eric Fischer

Merge pull request #9405 from edx/efischer/js-flakes

JS Flakiness in TeamDiscussionView
parents d1e31afa 90b94a46
......@@ -8,6 +8,7 @@ define([
var discussionView, createDiscussionView, createPost, expandReplies, postReply;
beforeEach(function() {
runs(function() {
setFixtures('<div class="discussion-module""></div>');
$('.discussion-module').data('course-id', TeamSpecHelpers.testCourseID);
$('.discussion-module').data('discussion-id', TeamSpecHelpers.testTeamDiscussionID);
......@@ -16,6 +17,13 @@ define([
DiscussionSpecHelper.setUnderscoreFixtures();
});
waitsFor(
function() {return typeof(jQuery)!='undefined' && jQuery.active==0;},
"Ajax did not finish",
10000
})
});
createDiscussionView = function(requests, threads) {
discussionView = new TeamDiscussionView({
el: '.discussion-module'
......
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