Skip to content

Commit

Permalink
skip test in jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed May 26, 2022
1 parent ac6ede0 commit fed767b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ describe('<DataGridPro /> - Column pinning', () => {
);
};

it('should scroll when the next cell to focus is covered by the left pinned columns', () => {
it('should scroll when the next cell to focus is covered by the left pinned columns', function test() {
if (isJSDOM) {
// Need layouting
this.skip();
}
render(<TestCase initialState={{ pinnedColumns: { left: ['id'] } }} />);
const virtualScroller = document.querySelector(`.${gridClasses.virtualScroller}`)!;
virtualScroller.scrollLeft = 100;
Expand All @@ -56,7 +60,7 @@ describe('<DataGridPro /> - Column pinning', () => {
});

it('should scroll when the next cell to focus is covered by the right pinned columns', function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
if (isJSDOM) {
// Need layouting
this.skip();
}
Expand Down

0 comments on commit fed767b

Please sign in to comment.