Skip to content

Commit

Permalink
[FIX] pos_event_sale: Click on open session button
Browse files Browse the repository at this point in the history
  • Loading branch information
dal-adhoc authored and maq-adhoc committed Nov 1, 2024
1 parent d63793c commit 4f4a208
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
{
Expand Down

0 comments on commit 4f4a208

Please sign in to comment.