Skip to content

Commit 501b923

Browse files
authored
test(DynamicPage): fix fuzzy test in CI (#5317)
1 parent ee70eb4 commit 501b923

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/main/src/components/DynamicPage/DynamicPage.cy.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,10 @@ describe('DynamicPage', () => {
622622
cy.findByTestId('dp').scrollTo(0, 750, { duration: 300 });
623623
cy.get('[data-component-name="DynamicPageAnchorBarPinBtn"]').should('not.exist');
624624

625-
cy.findByTestId('dp').scrollTo(0, 0, { duration: 300 });
625+
cy.wait(600);
626+
cy.findByTestId('dp').scrollTo(0, 0);
626627
cy.get('[data-component-name="DynamicPageAnchorBarPinBtn"]').should('be.visible');
627628
});
629+
628630
cypressPassThroughTestsFactory(DynamicPage);
629631
});

0 commit comments

Comments
 (0)