Skip to content

Commit

Permalink
bug(aggregationLengthEquals-matcher): value not recognized/parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Volker Buzek committed May 15, 2019
1 parent 3c4b808 commit d1b16c6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/browser/fixture/apps/browser/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ module.exports = {
var page1 = new sap.m.Page("page1", {
title: "Page 1",
content : [
new sap.m.List({
id: "ListPage1",
items: [
new sap.m.StandardListItem({title:"1"}),
new sap.m.StandardListItem({title:"2"}),
new sap.m.StandardListItem({title:"3"})
]
}),
new sap.m.Button({
id : "show-footer-btn",
text : "Show footer",
Expand Down
11 changes: 11 additions & 0 deletions e2e/browser/specs/by_control.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ describe("by_control", function () {
utils.injectPageContent(browser, "app");
});

it("should match control's aggregation with 'aggregationLengthEquals'", function () {
var oList = element(by.control({
id: "ListPage1",
aggregationLengthEquals: {
name: "items",
value: 3
}
}));
expect(oList.getAttribute("id")).toEqual("ListPage1");
});

it("should get matching control ref", function () {
var navButton = element(by.control({
id: "show-nav-btn"
Expand Down

0 comments on commit d1b16c6

Please sign in to comment.