Fix the pick_email test failure when all tests are run.
The problem stemmed from the DOM was not completely reset between every test. When the manage page inserted email addresses into its portion of the DOM, it added email addresses with elements with the same ID as the pick email controller. Instead of ensuring we clean wipe these elements between every test, rely on QUnit's ability to reset a portion of the DOM to its initial state. * Add the `qunit-fixture` class to the bit of DOM that should be reset between every test run. * Add the testHelpers.setup/testHelpers.teardown functions to several suites that manually called emtpy() on DOM elements. issue #1156
Showing
- resources/static/test/cases/pages/add_email_address_test.js 0 additions, 1 deletionresources/static/test/cases/pages/add_email_address_test.js
- resources/static/test/cases/shared/helpers.js 4 additions, 2 deletionsresources/static/test/cases/shared/helpers.js
- resources/static/test/cases/shared/renderer.js 4 additions, 12 deletionsresources/static/test/cases/shared/renderer.js
- resources/static/test/cases/shared/screens.js 3 additions, 9 deletionsresources/static/test/cases/shared/screens.js
- resources/static/test/testHelpers/helpers.js 3 additions, 8 deletionsresources/static/test/testHelpers/helpers.js
- resources/views/test.ejs 1 addition, 1 deletionresources/views/test.ejs
Loading
Please register or sign in to comment