Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pages for incorrect links #88

Open
MrGreenTea opened this issue Mar 5, 2024 · 1 comment
Open

Test pages for incorrect links #88

MrGreenTea opened this issue Mar 5, 2024 · 1 comment
Labels
tests Adds or updates the tests

Comments

@MrGreenTea
Copy link
Contributor

Our links are currently not checked if their target is correct/reachable. We should do this at least for all "local" links. Doing it for external links could prove fickle.

We could add an expect assertion to do this: https://playwright.dev/docs/test-assertions#add-custom-matchers-using-expectextend

@MrGreenTea MrGreenTea added the tests Adds or updates the tests label Mar 5, 2024
@MrGreenTea
Copy link
Contributor Author

I could see something like expect(page).toHaveNoUnreachableLinks()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Adds or updates the tests
Projects
None yet
Development

No branches or pull requests

1 participant