Skip to content

Commit

Permalink
chore: next try to fix the wdi5 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuessig committed Aug 24, 2024
1 parent 8c3712d commit e07c1cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions showcases/ui5-app/webapp/test/e2e/binding.test.js
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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);
});
});

0 comments on commit e07c1cf

Please sign in to comment.