-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2950595
commit 88d1035
Showing
5 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
title: Test websites for accessibility and user experience with free tools | ||
author: Marius Mather | ||
date: 2024-09-19 | ||
Category: Web | ||
Tags: webdev,programming,design | ||
--- | ||
|
||
While you can test the code and logic for a website using automated | ||
testing tools like [Vitest](https://vitest.dev/) or [Cypress](https://www.cypress.io/), | ||
it can be harder to test what users see, and all the things that can | ||
potentially impact their experience, like: | ||
|
||
* Page load times | ||
* Layouts that jump around and shift | ||
* Accessibility for users with vision issues, or users of screen readers | ||
* How your site looks when you share it to social media | ||
|
||
There are a few automated tools that can provide quick and easy checks for | ||
issues you might not spot otherwise. | ||
|
||
## PageSpeed Insights (Google) | ||
|
||
[PageSpeed Insights](https://pagespeed.web.dev/) gives a good overall breakdown | ||
of loading times, accessibility, and general web development best practices, | ||
giving you a simple overall score in each category and a breakdown | ||
of the specific issues it flags: | ||
|
||
![Example PageSpeed results](images/2024-09-19-website_testing_tools/pagespeed.png) | ||
|
||
You can also perform these checks directly from Chrome's dev tools - look for | ||
the **Lighthouse** tab. You can use this to test sites that are only | ||
running locally/in development mode. | ||
|
||
## Mozilla Observatory | ||
|
||
[Mozilla Observatory](https://observatory.mozilla.org/) can test your site for | ||
some basic security issues, which is particularly important if you're accepting | ||
data or authenticating users. It can be particularly useful for checking | ||
that your site is using HTTPS correctly, as well as letting you know about | ||
ways you could improve the site's [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP). | ||
|
||
This is mostly relevant for sites where you're running your own server - for sites | ||
hosted on GitHub Pages or similar services, you may not have much control over these | ||
issues. | ||
|
||
![Example Observatory results](images/2024-09-19-website_testing_tools/observatory.png) | ||
|
||
## OpenGraph Preview | ||
|
||
[OpenGraph Preview](https://www.opengraph.xyz) can you show you how your site will look when | ||
shared to social media, e.g. Facebook or Twitter. These previews [use meta tags](https://ogp.me/) | ||
in the header of your site, and can be tricky to get right without previewing them. | ||
|
||
![Example OpenGraph preview](images/2024-09-19-website_testing_tools/opengraph.png) | ||
|
||
## Accessibility Checker | ||
|
||
Tools like [Accessibility Checker](https://www.accessibilitychecker.org) can provide a bit more | ||
detail on accessibility flaws that PageSpeed flags - be aware that this one seems to warn | ||
you a lot about potential lawsuits and tries to sell you services to fix it. But it does include | ||
tools for checking the exact level of contrast between foreground and background, which | ||
can be an important feature for users with vision issues. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.