[FIX] point_of_sale: test pos_basic_order do not actually jump in the backend

We avoid to actually jump in the back-end, to prevent
phantomjs to send requests to the server without waiting for them.

Indeed, clicking on the close & confirm button jumps ine the backend,
but the tour is actually finished (and succeeded) once these buttons
are clicked, and just clicked. The test does not actually check if these buttons
makes the user come back in the backend, and it does not wait
for the requests sent because of the jump in the backend to be completed.
Besides, the jump in the backend triggers the compilation
of the common and backend assets, which take some time.

These requests for which phantomjs does not wait triggers
the method `def _wait_remaining_requests(self)` in the
class `class HttpCase(TransactionCase)`, which
leads to the ugly tracebacks in the runbot, waiting
for the requests triggered by phantomjs to be finished.
This commit is contained in:
Denis Ledoux
2017-08-11 16:05:43 +02:00
parent d7c248e3c0
commit cbb52702dd
+2 -1
View File
@@ -110,7 +110,8 @@ odoo.define('point_of_sale.Tour', function (require) {
trigger: ".header-button",
}, {
content: "confirm closing the frontend",
trigger: ".header-button",
trigger: ".header-button.confirm",
run: function() {}, //it's a check,
}]);
tour.register('pos_basic_order', { test: true, url: '/pos/web' }, steps);