blob: 3d8c07cf1f2171bb5e888f09a48293374dec5b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
odoo.define('point_of_sale.tour.ErrorPopupTourMethods', function (require) {
'use strict';
const { createTourMethods } = require('point_of_sale.tour.utils');
class Do {
clickConfirm() {
return [
{
content: 'click confirm button',
trigger: '.popup-error .footer .cancel',
},
];
}
}
class Check {
isShown() {
return [
{
content: 'error popup is shown',
trigger: '.modal-dialog .popup-error',
run: () => {},
},
];
}
}
return createTourMethods('ErrorPopup', Do, Check);
});
|