summaryrefslogtreecommitdiff
path: root/addons/web_tests/static/src
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-06-23 09:12:44 +0200
committerAaron Bohy <aab@odoo.com>2015-06-26 09:31:25 +0200
commit617cfd7dc8d01746aeb47aef6a226dff07401c4c (patch)
tree7bf4192bb1b50c742bc24c9d660668ca3df826a2 /addons/web_tests/static/src
parentb0ff033d695ed7da2ae5c6c08735ed09da70324e (diff)
[FIX] web_tests,test_new_api: act_window for new design compatibility
The widget_x2many tour uses the discussion model to test one2many and many2many widgets. The tour clicks on an item of the menu which opens the discussion model with the discussion_form_2 view (in create mode). Then, it clicks on the view_switcher to display the list view, and clicks on an item of the list to open a previously created record. In the new design, there is no more view_switcher in form view. This flow is thus unfeasible. This solution changes the menu action so that it directly opens the model with the list view, on which we can click on the record to display in form view.
Diffstat (limited to 'addons/web_tests/static/src')
-rw-r--r--addons/web_tests/static/src/js/web.tour.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/web_tests/static/src/js/web.tour.js b/addons/web_tests/static/src/js/web.tour.js
index 270c058c49e..bcadb38fb10 100644
--- a/addons/web_tests/static/src/js/web.tour.js
+++ b/addons/web_tests/static/src/js/web.tour.js
@@ -362,12 +362,8 @@ Tour.register({
},
{
- title: "switch to list view",
- waitFor: ".oe_list_editable",
- element: '.oe-cp-switch-list',
- },
- {
title: "select previous created record",
+ waitFor: '.breadcrumb li:containsExact(Discussions 2)',
element: 'td[data-field="name"]:contains(test_trigger):last',
},
{