-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
import odoo.tests | ||
from odoo.api import Environment | ||
from odoo.tests import tagged | ||
from odoo.addons.point_of_sale.tests.test_frontend import TestPointOfSaleHttpCommon | ||
|
||
|
||
@tagged("at_install", "post_install") | ||
class TestUi(odoo.tests.HttpCase): | ||
class TestUi(TestPointOfSaleHttpCommon): | ||
def test_01_partner_deselection(self): | ||
# needed because tests are run before the module is marked as | ||
# installed. In js web will only load qweb coming from modules | ||
# that are returned by the backend in module_boot. Without | ||
# this you end up with js, css but no qweb. | ||
cr = self.registry.cursor() | ||
env = Environment(cr, self.uid, {}) | ||
self.main_pos_config.write({"customer_deselection_interval": 1}) | ||
|
||
env["pos.config"].search([]).write({"customer_deselection_interval": 1}) | ||
|
||
self.browser_js( | ||
"/web", | ||
"odoo.__DEBUG__.services['web_tour.tour'].run('pos_partner_deselection_tour'), 500", | ||
"odoo.__DEBUG__.services['web_tour.tour'].tours.pos_partner_deselection_tour.ready", | ||
self.start_tour( | ||
"/pos/ui?config_id=%d" % self.main_pos_config.id, | ||
"pos_partner_deselection_tour", | ||
500, | ||
login="admin", | ||
timeout=100, | ||
) |