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 0c9c546 commit 10cb49b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion showcases/ui5-app/webapp/test/e2e/binding.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,31 @@ describe("binding", function () {
await MainPage.iPressTheNavButton();
expect(onTheOtherPage.iShouldSeeTheList()).toBeTruthy();

console.log(
"list",
await browser.asControl({
selector: {
viewName: "ui5.ecosystem.demo.app.view.Other",
id: "PeopleList",
},
})
);

const isVisible =
(await browser
.asControl({
selector: {
viewName: "ui5.ecosystem.demo.app.view.Other",
id: "PeopleList",
},
})
.getVisible()) === true;
expect(isVisible).toBeTruthy();

console.log("list2", await browser.asControl(list));

// 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);
//expect(aListItems.length).toBeGreaterThanOrEqual(1);
});
});

0 comments on commit 10cb49b

Please sign in to comment.