Skip to content

Commit

Permalink
feat(ui5-tabcontainer): Responsive paddings are now supported
Browse files Browse the repository at this point in the history
Fixes: SAP#2539
  • Loading branch information
TeodorTaushanov committed Feb 17, 2021
1 parent f24b408 commit 4c8ac16
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/main/test/specs/TabContainer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ describe("TabContainer general interaction", () => {
assert.strictEqual(resultIdx.getText(), SELECTED_TAB_INDEX, "Tab index is retrieved correctly.");
});

it("tests custom media ranges", () => {
browser.setWindowSize(520, 1080);
assert.strictEqual($("#tabContainerIconOnly").getAttribute("media-range"), "S", "media-range=S");

browser.setWindowSize(650, 1080);
assert.strictEqual($("#tabContainerIconOnly").getAttribute("media-range"), "M", "media-range=M");

browser.setWindowSize(1350, 1080);
assert.strictEqual($("#tabContainerIconOnly").getAttribute("media-range"), "L", "media-range=L");

browser.setWindowSize(1650, 1080);
assert.strictEqual($("#tabContainerIconOnly").getAttribute("media-range"), "XL", "media-range=XL");
});

it("scroll works on iconsOnly TabContainer", () => {
browser.setWindowSize(520, 1080);

Expand Down

0 comments on commit 4c8ac16

Please sign in to comment.