diff --git a/cms/static/js_spec/transcripts/editor_spec.js b/cms/static/js_spec/transcripts/editor_spec.js index 2164b8ab0e..4f16a7d983 100644 --- a/cms/static/js_spec/transcripts/editor_spec.js +++ b/cms/static/js_spec/transcripts/editor_spec.js @@ -161,9 +161,15 @@ function ($, Backbone, _, Utils, Editor, MetadataView, MetadataModel, MetadataCo it('Correct data', function () { transcripts.syncBasicTab(metadataCollection, metadataView); - var collection = transcripts.collection.models, - displayNameValue = collection[0].getValue(), - videoUrlValue = collection[1].getValue(); + var collection = transcripts.collection.models; + + waitsFor(function() { + var displayNameValue = collection[0].getValue(); + return (displayNameValue !== "" && displayNameValue != "video_id"); + }, "Defaults never loaded", 1000); + + var displayNameValue = collection[0].getValue(); + var videoUrlValue = collection[1].getValue(); expect(displayNameValue).toBe('default'); expect(videoUrlValue).toEqual([