Skip to content

Commit

Permalink
New post: web testing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Sep 19, 2024
1 parent 2950595 commit 88d1035
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions content/2024-09-19-web_testing_tools.md
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.

0 comments on commit 88d1035

Please sign in to comment.