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

Testing #2301

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Testing #2301

wants to merge 20 commits into from

Conversation

MTRNord
Copy link
Collaborator

@MTRNord MTRNord commented Apr 19, 2024

Some more recent issues (#2278 , #2276 , #2261 and #2180 and probably others) have shown a pattern of things that may be possible to catch with testing. So I decided to get a stab at building a simple playwright based testsuite for this.

The testsuite will also bring tests for accessibility based on https://playwright.dev/docs/accessibility-testing which hopefully helps us on that front as well.

image

Skipped ones are due to issues beyond the scope of the PR.

For example these kinds of accessibility errors:
image

TODO:

  • Add test for ecosystem filters

@MTRNord MTRNord self-assigned this Apr 19, 2024
Copy link

cloudflare-workers-and-pages bot commented Apr 19, 2024

Deploying matrix-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0a4a40
Status: ✅  Deploy successful!
Preview URL: https://ebdbc9b2.matrix-website.pages.dev
Branch Preview URL: https://mtrnord-playwright.matrix-website.pages.dev

View logs

@MTRNord
Copy link
Collaborator Author

MTRNord commented Apr 20, 2024

One thing to clear up is if we follow wcag2a or wcag2aa 🤔 (it can be configured)

My opinion is to go with aa since we want a partial redesign anyway. But if not its easy to change the tests to only run against a which should allow us to run all tests afaik without skipping.

@MTRNord
Copy link
Collaborator Author

MTRNord commented Apr 20, 2024

One recurring issue is the contrast of the urls we link to by the way.

@MTRNord MTRNord marked this pull request as ready for review April 24, 2024 08:57
@MTRNord
Copy link
Collaborator Author

MTRNord commented Apr 27, 2024

Since we also just had the case that the frontpage failed due to the link in the new banner (which is also fixed by #2319 ) here is an example where we can find the html reports of these errors: https://github.com/matrix-org/matrix.org/actions/runs/8859887109?pr=2301 under artifacts there is a html-report--attempt-1 artifact which will contain a human readable format. Sadly I didnt find a nice way to have it like a comment on PRs. In the future maybe thats a fun sideproject for someone to do but for now there isnt anything like that :)

playwright.config.ts Outdated Show resolved Hide resolved
tests/filters.spec.ts Outdated Show resolved Hide resolved
tests/filters.spec.ts Outdated Show resolved Hide resolved
tests/menu.spec.ts Outdated Show resolved Hide resolved
@MTRNord MTRNord added the enhancement This would be an improvement to the website. label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This would be an improvement to the website.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants