From 041e3938c079c01ff1903e1575d35ef421ae2b6f Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Thu, 16 Sep 2021 07:37:14 +0000 Subject: [PATCH] [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) --- addons/website/static/tests/tours/edit_link_popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/tests/tours/edit_link_popover.js b/addons/website/static/tests/tours/edit_link_popover.js index f6a497f08b7..a8f60a4cc20 100644 --- a/addons/website/static/tests/tours/edit_link_popover.js +++ b/addons/website/static/tests/tours/edit_link_popover.js @@ -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'); },