diff --git a/pos_event_sale/static/tests/tours/EventSaleAvailability.tour.js b/pos_event_sale/static/tests/tours/EventSaleAvailability.tour.js index e2b08795be..641849120a 100644 --- a/pos_event_sale/static/tests/tours/EventSaleAvailability.tour.js +++ b/pos_event_sale/static/tests/tours/EventSaleAvailability.tour.js @@ -17,6 +17,7 @@ odoo.define("pos_event_sale.tour.EventSaleAvailability", function (require) { startSteps(); // Add event through Add Event button + ProductScreen.do.clickOpenSessionButton(); ProductScreen.do.clickAddEventButton(); EventSelector.check.isShown(); EventSelector.check.eventHasAvailabilityLabel("Les Misérables", "5 remaining"); diff --git a/pos_event_sale/static/tests/tours/helpers/ProductScreenTourMethods.js b/pos_event_sale/static/tests/tours/helpers/ProductScreenTourMethods.js index 3708fc2677..4d0c779c29 100644 --- a/pos_event_sale/static/tests/tours/helpers/ProductScreenTourMethods.js +++ b/pos_event_sale/static/tests/tours/helpers/ProductScreenTourMethods.js @@ -10,6 +10,19 @@ odoo.define("pos_event_sale.tour.ProductScreenTourMethods", function (require) { const {Do, Check, Execute} = require("point_of_sale.tour.ProductScreenTourMethods"); class DoExt extends Do { + clickOpenSessionButton() { + return [ + { + content: "click add open session button", + trigger: + '.opening-cash-control .footer .button.dynamic-size', + extra_trigger: function () { + return $('div.popups').html() == ''; + }, + }, + ]; + } + clickAddEventButton() { return [ {