[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:
@@ -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"]'));
|
||||
|
||||
Reference in New Issue
Block a user