Skip to content

Commit

Permalink
fix(ui5-list): load-more event fired correctly (#8143)
Browse files Browse the repository at this point in the history
* fix(ui5-list): load-more event fired correctly

* test: add tests
  • Loading branch information
dobrinyonkov committed Jan 19, 2024
1 parent e1f4e82 commit c483a28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/main/src/themes/List.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.ui5-list-end-marker {
/* Ensure the list-end-marker has a block property to always be stretched and "visible" on the screen */
display: inline-block;
}
8 changes: 8 additions & 0 deletions packages/main/test/specs/List.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,4 +589,12 @@ describe("List Tests", () => {

assert.equal(newTabIndex , "0", "The tabIndex of the list item root should be '0' when inner element receives focus.");
});

it("End marker has correct CSS properties", async () => {
const list = await browser.$(".list_test_page2auto");
const endMarker = await list.shadow$(".ui5-list-end-marker");
const display = await endMarker.getCSSProperty("display");

assert.strictEqual(display.value, 'inline-block', "The end marker is displayed");
});
});

0 comments on commit c483a28

Please sign in to comment.