Skip to content

Commit

Permalink
chore: fix NotificationList tests (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev committed Jun 17, 2020
1 parent b003f05 commit 81d7403
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/fiori/test/specs/NotificationList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("Notification List Item Tests", () => {
const firstItem = $("#nli1");
const btnListGroupItemClose = firstGroupItem.shadow$("[close-btn]");
const btnListItemClose = firstItem.shadow$("[close-btn]");

// act
btnListGroupItemClose.click();

Expand All @@ -46,8 +46,8 @@ describe("Notification List Item Tests", () => {
const customActionInput = $("#customActionInput");
const secondItem = $("#nli2");
const customAction = secondItem.shadow$(".ui5-nli-action");
// act

// act
customAction.click();

// assert
Expand All @@ -60,7 +60,7 @@ describe("Notification List Item Tests", () => {
const EXPECTED_RESULT = "Orders";
const firstGroupItem = $("#nlgi1");
const btnListGroupItemToggle = firstGroupItem.shadow$(".ui5-nli-group-toggle-btn");

// act
btnListGroupItemToggle.click();

Expand Down Expand Up @@ -118,7 +118,7 @@ describe("Notification List Item Tests", () => {
const invisibleText = firstGroupItem.shadow$(".ui5-hidden-text");

// assert
assert.strictEqual(invisibleText.getText(), EXPECTED_RESULT,
assert.strictEqual(invisibleText.getText().toLowerCase(), EXPECTED_RESULT.toLowerCase(),
"The invisible text is correct.");
});

Expand All @@ -140,7 +140,7 @@ describe("Notification List Item Tests", () => {
const invisibleText = firstItem.shadow$(".ui5-hidden-text");

// assert
assert.strictEqual(invisibleText.getText(), EXPECTED_RESULT,
assert.strictEqual(invisibleText.getText().toLowerCase(), EXPECTED_RESULT.toLowerCase(),
"The invisible text is correct.");
});

Expand All @@ -158,4 +158,4 @@ describe("Notification List Item Tests", () => {
assert.strictEqual(firstItemRoot.getAttribute("aria-labelledby"), EXPECTED_ARIA_LABELLED_BY,
"The ariaLabelledBy text is correct.");
});
});
});

0 comments on commit 81d7403

Please sign in to comment.