summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/js/debug_manager.js
blob: bcc9f60835f2309e145e425df4612a699956adf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
odoo.define('point_of_sale.DebugManager.Backend', function(require) {
    'use strict';

    const { _t } = require('web.core');
    const DebugManager = require('web.DebugManager.Backend');

    DebugManager.include({
        /**
         * Runs the JS (desktop) tests
         */
        perform_pos_js_tests() {
            this.do_action({
                name: _t('JS Tests'),
                target: 'new',
                type: 'ir.actions.act_url',
                url: '/pos/ui/tests?mod=*',
            });
        },
    });
});