[FIX] website: allow link popover test to continue when already hidden

Before this commit the link popover test sometimes froze on a test that
was added to hide the popover in case it did not work automatically.
The popover is however automatically hidden before this step from time
to time, thus making this step blocking.

After this commit this step just hides the popover in case it was still
there.

Related to staging build https://runbot.odoo.com/runbot/build/9990797

closes odoo/odoo#76662

X-original-commit: 2c419971411301219b0a1784749b9f1751796239
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
Benoit Socias
2021-09-16 16:57:51 +00:00
parent 8a4f6b760e
commit 041e3938c0
@@ -183,7 +183,7 @@ tour.register('edit_link_popover', {
// FIXME this step shouldnt be needed but click not working as real click
{
content: "REMOVEME",
trigger: '.o_edit_menu_popover',
trigger: 'html', // Do not block if popover already hidden
run: (actions) => {
$('.o_edit_menu_popover').popover('hide');
},