Skip to content

Commit

Permalink
test bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianDavideConte committed Jan 18, 2024
1 parent 6e6ad61 commit bf6347c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/getScrollbarsMaxDimension-tests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ describe("getScrollbarsMaxDimension", function () {
it("Tests the getScrollbarsMaxDimension method", function () {
cy.window()
.then((win) => {
if (browserIsChrome(win)) expect(uss.getScrollbarsMaxDimension()).to.equal(17);
if (browserIsChrome(win)) expect(uss.getScrollbarsMaxDimension()).to.be.oneOf([15, 17]);
else if (browserIsEdgeChromium(win)) expect(uss.getScrollbarsMaxDimension()).to.equal(15);
else if (browserIsFirefox(win)) expect(uss.getScrollbarsMaxDimension()).to.be.oneOf([0, 12, 15, 17]);
else if (browserIsSafari(win)) expect(uss.getScrollbarsMaxDimension()).to.equal(0);

if (browserIsChrome(win)) expect(uss.getScrollbarsMaxDimension(true)).to.equal(17);
if (browserIsChrome(win)) expect(uss.getScrollbarsMaxDimension(true)).to.be.oneOf([15, 17]);
else if (browserIsEdgeChromium(win)) expect(uss.getScrollbarsMaxDimension(true)).to.equal(15);
else if (browserIsFirefox(win)) expect(uss.getScrollbarsMaxDimension(true)).to.be.oneOf([0, 12, 15, 17]);
else if (browserIsSafari(win)) expect(uss.getScrollbarsMaxDimension(true)).to.equal(0);
Expand Down

0 comments on commit bf6347c

Please sign in to comment.