Skip to content

Commit

Permalink
tests bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianDavideConte committed Dec 15, 2024
1 parent 76ceda4 commit a07d86f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cypress/e2e/scrollIntoView-tests.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as uss from '../../src/main/uss.js';
import * as types from '../../src/main/types.js';
import * as common from '../../src/main/common.js';

const { constants } = require('../support/constants');
Expand All @@ -13,7 +14,7 @@ function getDeltas(element, parent) {
const _scrollbarsDimensions = uss.calcScrollbarsDimensions(parent);

const _elPos = element.getBoundingClientRect();
const _containerPos = !common.IS_WINDOW(parent)
const _containerPos = !types.IS_WINDOW(parent)
? parent.getBoundingClientRect()
: { top: 0, right: parent.innerWidth, bottom: parent.innerHeight, left: 0 };

Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/scrollIntoViewIfNeeded-tests.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as uss from '../../src/main/uss.js';
import * as types from '../../src/main/types.js';
import * as common from '../../src/main/common.js';

const { constants } = require('../support/constants');
Expand All @@ -13,7 +14,7 @@ function getDeltas(element, parent) {
const _scrollbarsDimensions = uss.calcScrollbarsDimensions(parent);

const _elPos = element.getBoundingClientRect();
const _containerPos = !common.IS_WINDOW(parent)
const _containerPos = !types.IS_WINDOW(parent)
? parent.getBoundingClientRect()
: { top: 0, right: parent.innerWidth, bottom: parent.innerHeight, left: 0 };

Expand Down

0 comments on commit a07d86f

Please sign in to comment.