summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2020-02-07 10:06:24 +0000
committerAdrien Dieudonne <adr@odoo.com>2020-03-11 10:10:16 +0000
commit8ba6a881c5eb5f9110e57080ffa00be5b4506c73 (patch)
tree50d3a93c6a518a2efe33fa70d4d827585f2abe9b /odoo
parent6f7349c91aa5a9f81147621f46adbd5c51197d28 (diff)
[REF] test_main_flows: use XMLID's as app menu selector
Note that tours shouldn't be language dependent. By using XMLID's we are able to find a menu even if the tour is running in another language. The tip has been moved slightly but it's not a big deal, others selectors menu already used XMLID's.
Diffstat (limited to 'odoo')
-rw-r--r--odoo/addons/test_main_flows/static/tests/tours/main_flow.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js
index dbe510467ac..6930eee21f9 100644
--- a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js
+++ b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js
@@ -425,12 +425,12 @@ tour.register('main_flow_tour', {
content: _t('Go back to the home menu'),
position: 'bottom',
}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
- trigger: '.o_app:contains("Inventory")',
+ trigger: '.o_app[data-menu-xmlid="stock.menu_stock_root"]',
content: _t('Go to Inventory'),
position: 'right',
edition: 'community'
}, {
- trigger: '.o_app > div:contains("Inventory")',
+ trigger: '.o_app[data-menu-xmlid="stock.menu_stock_root"]',
content: _t('Go to Inventory'),
position: 'bottom',
edition: 'enterprise'
@@ -489,12 +489,12 @@ tour.register('main_flow_tour', {
content: _t('Go back to the home menu'),
position: 'bottom',
}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
- trigger: '.o_app:contains("Purchase")',
+ trigger: '.o_app[data-menu-xmlid="purchase.menu_purchase_root"]',
content: _t('Go to Purchase'),
position: 'right',
edition: 'community'
}, {
- trigger: '.o_app > div:contains("Purchase")',
+ trigger: '.o_app[data-menu-xmlid="purchase.menu_purchase_root"]',
content: _t('Go to Purchase'),
position: 'bottom',
edition: 'enterprise'
@@ -545,12 +545,12 @@ tour.register('main_flow_tour', {
content: _t('Go back to the home menu'),
position: 'bottom',
}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
- trigger: '.o_app:contains("Manufacturing")',
+ trigger: '.o_app[data-menu-xmlid="mrp.menu_mrp_root"]',
content: _t('Go to Manufacturing'),
position: 'right',
edition: 'community'
}, {
- trigger: '.o_app > div:contains("Manufacturing")',
+ trigger: '.o_app[data-menu-xmlid="mrp.menu_mrp_root"]',
content: _t('Go to Manufacturing'),
position: 'bottom',
edition: 'enterprise'