diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/website/static/tests/tours/reset_password.js | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/website/static/tests/tours/reset_password.js')
| -rw-r--r-- | addons/website/static/tests/tours/reset_password.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/website/static/tests/tours/reset_password.js b/addons/website/static/tests/tours/reset_password.js new file mode 100644 index 00000000..0f7eee7c --- /dev/null +++ b/addons/website/static/tests/tours/reset_password.js @@ -0,0 +1,30 @@ +odoo.define('website.tour_reset_password', function (require) { +'use strict'; + +var tour = require('web_tour.tour'); +require('web.dom_ready'); + +tour.register('website_reset_password', { + test: true, +}, [ + { + content: "fill new password", + trigger: '.oe_reset_password_form input[name="password"]', + run: "text adminadmin" + }, + { + content: "fill confirm password", + trigger: '.oe_reset_password_form input[name="confirm_password"]', + run: "text adminadmin" + }, + { + content: "submit reset password form", + trigger: '.oe_reset_password_form button[type="submit"]', + }, + { + content: "check that we're logged in", + trigger: '.oe_topbar_name:contains("The King")', + run: function () {} + }, +]); +}); |
