[FIX] web: fix quick edit text selection test

Before this commit, it could happen that the test fails.
We may be waiting too long on the second click in the test and so
the form switches to edit mode too early.
Now, we don't await the click to keep sync.

closes odoo/odoo#74157

X-original-commit: 01708583777cf33e9b505a494fdc5cdb66db86b5
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Michael Mattiello (mcm)
2021-07-23 11:04:29 +00:00
parent b3de6f43d5
commit 0864034f45
@@ -11264,7 +11264,7 @@ QUnit.module('Views', {
// double click selecting text doesn't start quick edit
window.getSelection().removeAllRanges();
await testUtils.dom.click(form.$('.o_field_widget[name="display_name"]'));
testUtils.dom.click(form.$('.o_field_widget[name="display_name"]'));
range.selectNode(form.$('.o_field_widget[name="display_name"]')[0]);
window.getSelection().addRange(range);
await testUtils.dom.click(form.$('.o_field_widget[name="display_name"]'));