[FIX] web: tests: patch form multiClickTime once for all

A lot of tests in different QUnit modules need this delay to be
patched to 0. Some of them (e.g. the 'ActionManager > Misc' module)
didn't patch it correctly. It worked before because a patch was
done in a previous test, and wasn't unpatch. The previous commit
ensures the patch is removed, so now we have at least 2 tests of
the above mentionned module that fail. This commit ensures that
the delay is patched in every tests, and allows to specify a
custom delay if necessary.
This commit is contained in:
Aaron Bohy
2021-03-31 09:30:07 +00:00
committed by Michael Mattiello (mcm)
parent a3937cfde5
commit c89cdcf11c
7 changed files with 8 additions and 44 deletions
@@ -151,13 +151,6 @@ QUnit.module('basic_fields', {
}]
},
};
testUtils.mock.patch(FormController, {
'multiClickTime': 0,
});
},
afterEach() {
testUtils.mock.unpatch(FormController);
},
}, function () {