Skip to content
Snippets Groups Projects
Commit 8ba6a881 authored by Romeo Fragomeli's avatar Romeo Fragomeli Committed by Adrien Dieudonne
Browse files

[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.
parent 6f7349c9
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment