diff --git a/web/tests/compose_validate.test.js b/web/tests/compose_validate.test.js index febe20ffcd..3b0664ed88 100644 --- a/web/tests/compose_validate.test.js +++ b/web/tests/compose_validate.test.js @@ -90,7 +90,6 @@ const admin = { user_groups.initialize({realm_user_groups: [nobody, everyone, admin]}); function test_ui(label, f) { - // The sloppy_$ flag lets us reuse setup from prior tests. run_test(label, (helpers) => { $("textarea#compose-textarea").val("some message"); f(helpers); diff --git a/web/tests/lib/test.js b/web/tests/lib/test.js index af86996cce..e76efe30bb 100644 --- a/web/tests/lib/test.js +++ b/web/tests/lib/test.js @@ -21,17 +21,13 @@ exports.noop = () => {}; exports.suite = []; -async function execute_test(label, f, opts) { - const {sloppy_$} = opts || {}; - +async function execute_test(label, f) { /* istanbul ignore if */ if (verbose) { console.info(" test: " + label); } - if (!sloppy_$ && $.clear_all_elements) { - $.clear_all_elements(); - } + $.clear_all_elements(); zpage_billing_params.reset(); zpage_params.reset();