odoo.define('pos_restaurant.tour.BillScreenTourMethods', function (require) {
    'use strict';

    const { createTourMethods } = require('point_of_sale.tour.utils');

    class Do {
        clickBack() {
            return [
                {
                    content: `go back`,
                    trigger: `.receipt-screen .back`,
                },
            ];
        }
    }

    class Check {
        isShown() {
            return [
                {
                    content: 'Bill screen is shown',
                    trigger: '.receipt-screen h1:contains("Bill Printing")',
                    run: () => {},
                },
            ];
        }
    }

    return { Do, Check, BillScreen: createTourMethods('BillScreen', Do, Check) };
});
