Skip to content

Commit 7e0b0cf

Browse files
fix: wait for md-content to load before asserting scrollTo in pr_4435 test
1 parent 22ddf07 commit 7e0b0cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cypress/e2e/pr_4435.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("Open page in new tab", { scrollBehavior: false }, () => {
1010
},
1111
});
1212
// wait for page content to load before asserting scroll
13-
cy.get(".page").should("exist");
13+
cy.get("#md-content p").should("exist");
1414
// there's one call in Page.jsx when componentDidMount
1515
cy.window().then((win) => {
1616
expect(win.scrollTo).to.be.calledOnce;

0 commit comments

Comments
 (0)