20 lines
744 B
Python
20 lines
744 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo.tests import tagged
|
|
|
|
from odoo.addons.point_of_sale.tests.test_frontend import TestPointOfSaleHttpCommon
|
|
|
|
|
|
@tagged("post_install", "-at_install")
|
|
class TestPosFullRefund(TestPointOfSaleHttpCommon):
|
|
"""Browser run of the "Do Full Refund" button.
|
|
|
|
The whole module is client side, so nothing short of a tour proves the
|
|
button works: a broken handler installs cleanly and just does nothing.
|
|
Needs a browser — the dev image ships one and exposes it through
|
|
CHROME_BIN (see dev/README.md).
|
|
"""
|
|
|
|
def test_full_refund_tour(self):
|
|
self.main_pos_config.with_user(self.pos_user).open_ui()
|
|
self.start_pos_tour("pos_full_refund_tour")
|