Skip to content

Commit

Permalink
fix opa tests pt.2
Browse files Browse the repository at this point in the history
  • Loading branch information
c-kobo committed Nov 27, 2024
1 parent 4305a29 commit 4324bf9
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions app/travel_processor/webapp/test/integration/OpaJourney.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,12 @@ sap.ui.define(["sap/ui/test/opaQunit"], function (opaTest) {
When.onTheDetailPage.onHeader().iExecuteAction("Edit");
Then.onTheDetailPage.iSeeObjectPageInEditMode();

When.onTheDetailPage.iGoToSection("Booking");
When.onTheDetailPage.iGoToSection("My Itinerary");
// Check buttons for bookings
Then.onTheDetailPage
.onTable({ property: "to_Booking" })
.onTable({
id: "sap.fe.cap.travel::TravelObjectPage--fe::CustomSubSection::CustomSection--bookingTable-content",
})
.iCheckDelete({ visible: false, enabled: false })
.and.iCheckCreate({ visible: false, enabled: false });

Expand All @@ -222,7 +224,9 @@ sap.ui.define(["sap/ui/test/opaQunit"], function (opaTest) {

When.onTheDetailPage.iGoToSection("General Information");
When.onTheDetailPage
.onTable({ property: "to_Booking" })
.onTable({
id: "sap.fe.cap.travel::TravelObjectPage--fe::CustomSubSection::CustomSection--bookingTable-content",
})
.iPressRow({ BookingID: "1" });

Then.onTheDetailItemPage.iSeeThisPage();
Expand Down Expand Up @@ -274,13 +278,17 @@ sap.ui.define(["sap/ui/test/opaQunit"], function (opaTest) {
When.onTheDetailPage.onHeader().iExecuteAction("Edit");
Then.onTheDetailPage.iSeeObjectPageInEditMode();

When.onTheDetailPage.iGoToSection("Booking");
When.onTheDetailPage.iGoToSection("My Itinerary");
// Check buttons
When.onTheDetailPage
.onTable({ property: "to_Booking" })
.onTable({
id: "sap.fe.cap.travel::TravelObjectPage--fe::CustomSubSection::CustomSection--bookingTable-content",
})
.iSelectRows({ BookingID: "2" });
Then.onTheDetailPage
.onTable({ property: "to_Booking" })
.onTable({
id: "sap.fe.cap.travel::TravelObjectPage--fe::CustomSubSection::CustomSection--bookingTable-content",
})
.iCheckDelete({ visible: true, enabled: true })
.and.iCheckCreate({ visible: true, enabled: true });

Expand All @@ -302,7 +310,9 @@ sap.ui.define(["sap/ui/test/opaQunit"], function (opaTest) {

When.onTheDetailPage.iGoToSection("General Information");
When.onTheDetailPage
.onTable({ property: "to_Booking" })
.onTable({
id: "sap.fe.cap.travel::TravelObjectPage--fe::CustomSubSection::CustomSection--bookingTable-content",
})
.iPressRow({ BookingID: "2" });

Then.onTheDetailItemPage.iSeeThisPage();
Expand Down

0 comments on commit 4324bf9

Please sign in to comment.