Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit cf7e6b1

Browse files
committed
chore: fix failing Cypress test
1 parent abb9954 commit cf7e6b1

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

cypress.config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/cypress/e2e/example11.cy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ describe('Example 11 - Add / Update / Highlight a Datagrid Item', () => {
9292
});
9393

9494
it('should scroll to top and expect certain rows on top', () => {
95-
cy.get('[data-test="scroll-top-btn"]').click();
95+
// cy.get('[data-test="scroll-top-btn"]').click();
96+
cy.get('.slick-viewport.slick-viewport-top.slick-viewport-left')
97+
.scrollTo('top');
9698

9799
cy.get(`[style="top: ${GRID_ROW_HEIGHT * 0}px;"] > .slick-cell:nth(1)`).should('contain', 'Task 1001');
98100
cy.get(`[style="top: ${GRID_ROW_HEIGHT * 1}px;"] > .slick-cell:nth(1)`).should('contain', 'Task 100');

0 commit comments

Comments
 (0)