Please sign in to comment.
[FIX] web: avoid click on home menu in community
A fix attempt for the clickEveryWhere test was made in 39e7135. Unfortunately, the last modification of the fix were not tested on the runbot and introduced two new issues. 1) The click method on the home menu has been changed to use an enhanced _click function. This function crash when the jquery element is empty. As this menu does not exists in community, the test miserably fails. 2) A "focus" event was added in the _click function that simulates a real click. But the "focus" event is not a mouse event and as nothing to do there. With this commit, the _click function returns immediatly when the element is empty. Also, the "focus" event is removed from the _click simulation but a focus method is used to give focus to the close button. Giving the focus to the cancel button is itself a fix for the DateTimePicker field (see 39e7135). closes #32082 Signed-off-by: Christophe Monniez (moc) <email@example.com>
- Loading branch information...
Showing with 2 additions and 1 deletion.