diff --git a/showcases/ui5-app/webapp/test/e2e/binding.test.js b/showcases/ui5-app/webapp/test/e2e/binding.test.js index 2d5e8824..c5a79f19 100644 --- a/showcases/ui5-app/webapp/test/e2e/binding.test.js +++ b/showcases/ui5-app/webapp/test/e2e/binding.test.js @@ -1,6 +1,14 @@ const MainPage = require("./pages/Main"); const onTheOtherPage = require("./pages/Other"); +const list = { + selector: { + viewName: "ui5.ecosystem.demo.app.view.Other", + id: "PeopleList", + }, +}; + +// this suite implemented straigh-fwd, no page objects describe("binding", function () { it("should see the initial page of the app", async function () { await MainPage.open(); @@ -11,5 +19,9 @@ describe("binding", function () { await MainPage.iPressTheNavButton(); expect(onTheOtherPage.iShouldSeeTheList()).toBeTruthy(); expect(onTheOtherPage.iShouldSeeListItems()).toBeTruthy(); + + // ui5 api + high-speed aggregation retrieval: https://ui5-community.github.io/wdi5/#/usage?id=getshorthand-conveniences + const aListItems = await browser.asControl(list).getItems(true); + expect(aListItems.length).toBeGreaterThanOrEqual(1); }); });