diff --git a/common/static/js/capa/spec/jsinput_spec.js b/common/static/js/capa/spec/jsinput_spec.js index b857972fb4..fb043e1631 100644 --- a/common/static/js/capa/spec/jsinput_spec.js +++ b/common/static/js/capa/spec/jsinput_spec.js @@ -27,4 +27,12 @@ describe("JSInput", function() { expect(inputField.data('waitfor')).toBeDefined(); }); }); + + it('tests the correct number of sections', function () { + var sections = $(document).find('section[id="inputtype_"]'); + var inputFields = $(document).find('input[id="input_"]'); + expect(sections.length).toEqual(2); + expect(sections.length).toEqual(inputFields.length); + }); }); +