diff options
| author | DramixDw <rve@odoo.com> | 2020-04-22 20:40:45 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-05-01 07:58:11 +0000 |
| commit | 52c23e01e3592126b4b4d6bde75e25594f203a99 (patch) | |
| tree | 800cf209d7cd3987d9846b51af8cbf5ab3e7f3ea /addons/website_links/static | |
| parent | 919185f9eb8e336d8ede3fd1855b8cca69dcdd50 (diff) | |
[REM] website,*: remove About us page and references
Remove the default about us page because it could be easily recreated and
doesn't add a lot of value to the website.
task-2189613
Diffstat (limited to 'addons/website_links/static')
| -rw-r--r-- | addons/website_links/static/tests/tours/website_links.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_links/static/tests/tours/website_links.js b/addons/website_links/static/tests/tours/website_links.js index b3885a513ce..d958308c5f6 100644 --- a/addons/website_links/static/tests/tours/website_links.js +++ b/addons/website_links/static/tests/tours/website_links.js @@ -18,7 +18,7 @@ tour.register('website_links_tour', { content: "fill the form and submit it", trigger: '#o_website_links_link_tracker_form input#url', run: function () { - var url = window.location.host + '/aboutus'; + var url = window.location.host + '/contactus'; $('#o_website_links_link_tracker_form input#url').val(url); $('.o_website_links_utm_forms input#campaign-select').val(1).change(); $('.o_website_links_utm_forms input#channel-select').val(1).change(); @@ -32,7 +32,7 @@ tour.register('website_links_tour', { // Depending of the speed of `requests.get` from `_get_title_from_url`, // the link name will either be "About us" (page title) or // "http://url/aboutus" (page url). - extra_trigger: '#o_website_links_recent_links .truncate_text:first():contains("About us"), #o_website_links_recent_links .truncate_text:first():contains("aboutus")', + extra_trigger: '#o_website_links_recent_links .truncate_text:first():contains("Contact us"), #o_website_links_recent_links .truncate_text:first():contains("contactus")', trigger: '#o_website_links_link_tracker_form #generated_tracked_link:contains("/r/")', run: function () { window.location.href = $('#generated_tracked_link').text(); @@ -40,9 +40,9 @@ tour.register('website_links_tour', { }, { content: "check that we landed on correct page with correct query strings", - trigger: '.s_title h1:containsExact("About us")', + trigger: '.s_title h1:containsExact("Contact us")', run: function () { - var expectedUrl = "/aboutus?utm_campaign=Sale&utm_source=Search+engine&utm_medium=Website"; + var expectedUrl = "/contactus?utm_campaign=Sale&utm_source=Search+engine&utm_medium=Website"; if (window.location.pathname + window.location.search !== expectedUrl) { console.error("The link was not correctly created."); } |
