tests: Remove unused sloppy_$ flag.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-09-20 16:19:52 -07:00 committed by Anders Kaseorg
parent 9c5978e85b
commit d18959b1b6
2 changed files with 2 additions and 7 deletions

View File

@ -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);

View File

@ -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();