diff options
| author | Romain Derie <rde@odoo.com> | 2019-06-03 14:26:05 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-06-05 05:56:33 +0000 |
| commit | fdbf11643fd04059bfbc2210427c428979fed73d (patch) | |
| tree | 56801140d47920d0582068323dd874c2ead687d5 /addons/website_crm/static/src | |
| parent | d7cd97a9be63ae0a8643400b56d6f9a03285fba6 (diff) | |
[IMP] *: move test and tour files to new folder hierarchy and asset
As we now have a new debug mode 'tests' which load a new asset bundle
containing tour-test files, we moved those files to a new folder hierarchy.
That will clean the .js files trees.
Also, those files should be included in the new asset.
Basically, the .js tour files (not test) should be inside /static/src/js/tours
while .js tour test files (test=true) should be inside /static/tests/tours next
to QUnit tests, inside a tours folder.
+ test_new_api: don't run the test in debug assets
task-1934445
Comes with https://github.com/odoo/enterprise/pull/4281
Closes #33213
Diffstat (limited to 'addons/website_crm/static/src')
| -rw-r--r-- | addons/website_crm/static/src/js/website_crm_tour.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/addons/website_crm/static/src/js/website_crm_tour.js b/addons/website_crm/static/src/js/website_crm_tour.js deleted file mode 100644 index 2923cb1ab50..00000000000 --- a/addons/website_crm/static/src/js/website_crm_tour.js +++ /dev/null @@ -1,42 +0,0 @@ -odoo.define('website_crm.tour', function(require) { - 'use strict'; - - var tour = require('web_tour.tour'); - - tour.register('website_crm_tour', { - test: true, - url: '/contactus', - }, [{ - content: "Complete name", - trigger: "input[name=contact_name]", - run: "text John Smith", - }, { - content: "Complete phone number", - trigger: "input[name=phone]", - run: "text +32 485 118.218" - }, { - content: "Complete Email", - trigger: "input[name=email_from]", - run: "text john@smith.com" - }, { - content: "Complete Company", - trigger: "input[name=partner_name]", - run: "text Odoo S.A." - }, { - content: "Complete Subject", - trigger: "input[name=name]", - run: "text Useless message" - }, { - content: "Complete Subject", - trigger: "textarea[name=description]", - run: "text ### TOUR DATA ###" - }, { - content: "Send the form", - trigger: ".o_website_form_send" - }, { - content: "Check we were redirected to the success page", - trigger: "#wrap:has(h1:contains('Thanks')):has(div.alert-success)" - }]); - - return {}; -}); |
