Skip to content

Commit

Permalink
fix(ui5-notification-list): fixed show more test (#9419)
Browse files Browse the repository at this point in the history
* fix(ui5-notification-list): fixed show more test

* fix(ui5-notification-list): fixed show more test
  • Loading branch information
GerganaKremenska authored Jul 9, 2024
1 parent 74c0aa3 commit 4ba9173
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/fiori/test/specs/NotificationList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,10 @@ describe("Notification List Item Tests", () => {
assert.strictEqual(await btnListItemShowMoreRoot.getAttribute("aria-expanded"), 'false', "The aria-expanded is correct.");

// act
await btnListItemShowMore.scrollIntoView();
await btnListItemShowMore.click();

firstItem = await browser.$("#nli3a");
btnListItemShowMore = await firstItem.shadow$("[showMore-btn]");
btnListItemShowMoreRoot = await btnListItemShowMore.shadow$(".ui5-link-root");

assert.strictEqual(await btnListItemShowMoreRoot.getAttribute("aria-label"), 'Less button. Show the texts with truncation', "The aria-label is correct.");
assert.strictEqual(await btnListItemShowMoreRoot.getAttribute("role"), 'button', "The role is correct.");
assert.strictEqual(await btnListItemShowMoreRoot.getAttribute("aria-expanded"), 'true', "The aria-expanded is correct.");
});

Expand All @@ -330,7 +326,7 @@ describe("Notification List Item Tests", () => {
const fourthGroupRoot = await browser.$("#nlgi4").shadow$(".ui5-nli-group-root");
const loadingId = `${await fourthGroupItem.getProperty("_id")}-loading`;
const EXPECTED_LOADING_ARIA_LABELLED_BY = `${loadingId}`;

assert.strictEqual(await firstGroupList.getAttribute("aria-labelledby"), id, "The aria-lebelledby is correct.");
assert.strictEqual(await firstGroupRoot.getAttribute("aria-labelledby"), id, "The aria-lebelledby is correct.");
assert.strictEqual(await fourthGroupRoot.getAttribute("aria-labelledby"), EXPECTED_LOADING_ARIA_LABELLED_BY, "The aria-lebelledby is correct.");
Expand Down

0 comments on commit 4ba9173

Please sign in to comment.