summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2021-03-15 14:28:47 +0000
committerLucas Perais (lpe) <lpe@odoo.com>2021-03-15 15:02:46 +0000
commit166e30b132fb659aa5a35a03cc73e5225575af2b (patch)
tree6b72432cca0f66288d9b1961627fc08dad9527e5 /addons
parent1207b99b73f5906209499cb2935b750faecd756d (diff)
[FIX] point_of_sale: tour waits for everything to be loaded
Before this commit, the first step of the tour pos_basic_order waited for something not precise enough, and that was true before anything was loaded After this commit, we wait both the the webClient and the Chrome to be loaded with a more specific selector Runbot issue fingerprint: bd10372b7db10c743f38312470ff528a74bfe9dcc0348a3e1f0bd47f55764378 Runbot issue id: 1357 closes odoo/odoo#67875 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/point_of_sale/static/tests/tours/point_of_sale.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/tests/tours/point_of_sale.js b/addons/point_of_sale/static/tests/tours/point_of_sale.js
index 2380fef68b9..25f88d3a4cc 100644
--- a/addons/point_of_sale/static/tests/tours/point_of_sale.js
+++ b/addons/point_of_sale/static/tests/tours/point_of_sale.js
@@ -44,9 +44,12 @@ odoo.define('point_of_sale.tour.pricelist', function (require) {
};
}
+ // The global posmodel is only present when the posmodel is instanciated
+ // So, wait for everythiong to be loaded
var steps = [{ // Leave category displayed by default
content: 'waiting for loading to finish',
- trigger: 'body:not(:has(.loader))',
+ extra_trigger: 'body .pos:not(:has(.loader))', // Pos has finished loading
+ trigger: 'body:not(.oe_wait)', // WebClient has finished Loading
run: function () {
var product_wall_shelf = posmodel.db.search_product_in_category(0, 'Wall Shelf Unit')[0];
var product_small_shelf = posmodel.db.search_product_in_category(0, 'Small Shelf')[0];