From 357b1422f253c214a7edfa7a34ccff88cf0f012d Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 15 Dec 2017 16:35:32 +0100 Subject: [PATCH] [FIX] portal: verify input content instead of body When running the portal tour, the test succeed too early because it finds the words "Your Details" on the wrong page (/my instead of /my/account). The selector has a match on previous page, so tour succeeded when it 's not complete. This commit use another selector that only match on the '/my/account' page. --- addons/portal/static/src/js/portal_tour.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal/static/src/js/portal_tour.js b/addons/portal/static/src/js/portal_tour.js index aa566f8d0d4..9bf552bde7d 100644 --- a/addons/portal/static/src/js/portal_tour.js +++ b/addons/portal/static/src/js/portal_tour.js @@ -14,7 +14,7 @@ tour.register('portal_load_homepage', { }, { content: "Load my account details", - trigger: 'body:contains("Your Details")', + trigger: 'input[value="Demo Portal User"]' } ] );