summaryrefslogtreecommitdiff
path: root/addons/sale/static/tests/tours
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/sale/static/tests/tours
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/sale/static/tests/tours')
-rw-r--r--addons/sale/static/tests/tours/sale_signature.js51
1 files changed, 51 insertions, 0 deletions
diff --git a/addons/sale/static/tests/tours/sale_signature.js b/addons/sale/static/tests/tours/sale_signature.js
new file mode 100644
index 00000000..185d4457
--- /dev/null
+++ b/addons/sale/static/tests/tours/sale_signature.js
@@ -0,0 +1,51 @@
+odoo.define('sale.tour_sale_signature', function (require) {
+'use strict';
+
+var tour = require('web_tour.tour');
+
+// This tour relies on data created on the Python test.
+tour.register('sale_signature', {
+ test: true,
+ url: '/my/quotes',
+},
+[
+ {
+ content: "open the test SO",
+ trigger: 'a:containsExact("test SO")',
+ },
+ {
+ content: "click sign",
+ trigger: 'a:contains("Sign")',
+ },
+ {
+ content: "check submit is disabled",
+ trigger: '.o_portal_sign_submit:disabled',
+ run: function () {},
+ },
+ {
+ content: "click Auto",
+ trigger: '.o_web_sign_auto_button',
+ },
+ {
+ content: "check submit is enabled",
+ trigger: '.o_portal_sign_submit:enabled',
+ run: function () {},
+ },
+ {
+ content: "click select style",
+ trigger: '.o_web_sign_auto_select_style a',
+ },
+ {
+ content: "click style 4",
+ trigger: '.o_web_sign_auto_font_selection a:eq(3)',
+ },
+ {
+ content: "click submit",
+ trigger: '.o_portal_sign_submit:enabled',
+ },
+ {
+ content: "check it's confirmed",
+ trigger: '#quote_content:contains("Thank You")',
+ },
+]);
+});