Skip to content

Commit 67d3e42

Browse files
kylemclarenclaude
andcommitted
Fix flaky navigation test in CI
- Add assertion that href is an internal link - Use cy.location('pathname') instead of cy.url() to avoid waiting for full page load event - Increase timeout to 60s for slow CI environments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 2622fc9 commit 67d3e42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cypress/e2e/features/link-cards.cy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ describe('LinkCards', () => {
1818
.first()
1919
.then(($link) => {
2020
const href = $link.attr('href');
21+
// Verify href exists and is an internal link
22+
expect(href).to.match(/^\//);
2123
cy.wrap($link).click();
22-
cy.url().should('include', href);
24+
cy.location('pathname', { timeout: 60000 }).should('include', href);
2325
});
2426
});
2527
});

0 commit comments

Comments
 (0)