Skip to content
easeweb

Step by step, with the free tools

Fix what’s there. Keep it fixed.

Nine steps, all free, with the code to copy, and none of them needs me. Steps 1 to 3 fix the barriers your site has today. Steps 4 to 9 keep new ones out of every release.

Part 1: Fix what’s there

Start here if your site is already live.

  1. Give your coding agent the rule

    • Who Whoever sets up the repo
    • When Once
    • With MCP server
    1. Add the free MCP server to your coding agent.

      One command, or a few lines of config, for Claude Code, Claude, Cursor, VS Code and Codex CLI. None needs a key or an account.

      Setup for each agent

    2. Paste this rule into CLAUDE.md, AGENTS.md or .cursor/rules.

      Rule
      When asked to design, build or change UI, call the easeweb before_building tool with the request before writing code or drawing the design. Put its requirements into the feature’s own test, not a separate accessibility suite. After building, call test_steps, write each test it lists as the agent’s, and hand the "a person must check" items to me as written. Never mark a [person] test as done, and never remove one.

      A server can’t make an agent call it; the rule it reads on every request can. The last sentence matters most: an agent reports what it was asked to finish, and a [person] item it was told to hand over is the one it won’t quietly close.

    You now have an agent that asks for the requirements before it builds, and hands the person’s checks back to you. Steps 3, 4 and 7 use it.

  2. Find what’s broken today

    1. Pick the task that matters most, and list its pages.

      For example: checkout, sign-up, booking, the contact form.

    2. Open each page in Chrome and choose Check this page in Readout.

      Readout runs the tests it can automate, then lists what a person still has to check.

      Get Readout for Chrome, free

    3. Go through the checklist on the same pages, in three passes.

    4. Choose Save results as a file on each page, and attach it to your tracker.

      One Markdown file per page: each problem, the elements it is on, the guide that fixes it, and what a person must still check.

    You now have a list of barriers, each with the guide that fixes it where there is one. Step 3 fixes them.

  3. Fix each one, and check it the way you found it

    1. Start with what stops someone finishing the main task.

    2. Choose Copy prompt on the problem in Readout, and paste it into your coding agent.

      The prompt names the elements and the guide, and has the agent confirm the problem in your code before it changes anything.

      Found it yourself? Ask your agent this instead, in your own words:

      Ask your agent
      Run find_fix on: "the menu can’t be opened with the keyboard"

      Or find it in the guides

    3. Say yes when the agent offers a test.

      When the fix is done, the prompt has the agent ask whether to add a Playwright test so it stays fixed. With the MCP server, it calls test_steps for the guide and starts from its skeleton. It is step 7, done for a barrier you already had.

    4. Check it the way you found it.

      In Readout, Check this again on the problem reruns only the tests that found it. For the part a person checks, do the steps the agent hands back, with the keyboard and a screen reader.

      Screen reader keys by task

    You now have the fix, and a test that keeps it fixed. Part 2 does the same for what you build next.

Part 2: Keep it fixed

Coverage is lost at the ticket, not at the tool.

The ticket says

“Add a newsletter dialog”

It never says

  • Focus moves into the dialog
  • Escape closes it
  • Focus comes back to the button

So nobody writes that test, the scan passes, and the barrier ships. These six steps keep that from happening.

  1. Write the behaviours into the ticket

    You don’t write these from memory. The guide for the component already lists them, and the tool finds the guide.

    1. Write the request in one line, the way you would say it.

      a newsletter signup dialog that opens from a button

    2. Ask your coding agent for the behaviours.

      Ask your agent
      Run before_building on: "a newsletter signup dialog that opens from a button"

      It answers with two lists, split by who can confirm each behaviour. Clients that support MCP prompts also offer it as a slash command.

    3. Paste both lists into the ticket, each under its own heading.

      Ticket

      Add a newsletter signup dialog

      Acceptance criteria

      The agent can check

      Step 7 turns these into tests
      • Opening the dialog from the keyboard moves focus inside it.
      • Tab and Shift + Tab never reach the background while it is open.
      • Escape, the visible close button and the dialog’s own buttons each close it, and focus returns to the trigger each time.
      • The dialog has an accessible name.

      A person must check

      Step 9 is this list, as a script
      • Focus lands at a useful point for the task in the dialog.
      • A screen reader announces the dialog name when it opens.
      • The dialog stays usable at increased zoom and in forced colors.

      No coding agent? Copy the same behaviours from the guide’s “Verify the fix” section.

    4. New colours in the design? Check them before the ticket is assigned.

      Ask your agent
      Run check_palette on: hint text #999999 on #ffffff, 14px

      It returns each pair’s contrast ratio against 1.4.3 and 1.4.11, and the nearest shade that passes.

    You now have a ticket with two lists. Step 7 turns the first into tests. Step 9 is the second, as a script.

  2. Lint, set to error

    • Who Developer
    • When While coding
    • With your framework’s accessibility rules
    1. Install the rules for your stack.

      Accessibility lint rules by stack
      React, Nexteslint-plugin-jsx-a11y, its recommended rules as errors
      Vueeslint-plugin-vuejs-accessibility
      Sveltethe compiler’s a11y warnings, failed with svelte-check --fail-on-warnings
      Angular@angular-eslint/template accessibility rules
      Shopify themesshopify theme check; it has few accessibility checks, so the scan and the feature tests in steps 6 and 7 carry most of the load
    2. Set them to error, and have npm run lint run them.

      The CI job in step 8 calls this script.

    3. On the first run, fix what fails today, or allow-list it explicitly.

      The job starts green, and only a new failure stops a merge.

    Catches: Patterns in the source: an image with no alt attribute, a click handler on a div, a label with nothing to point at.

    Misses: Anything that only exists once the page runs.

  3. Scan what changed, rendered

    • Who Developer
    • When In the pull request
    • With Playwright, axe
    1. Install Playwright with axe.

      Terminal
      npm i -D @playwright/test @axe-core/playwright
      npx playwright install --with-deps chromium
    2. Add a desktop and a phone project, so every test also runs on the phone layout.

      playwright.config.js
      import { defineConfig, devices } from '@playwright/test';
      
      export default defineConfig({
        use: { baseURL: process.env.BASE_URL ?? 'http://localhost:5173' },
        // Every test runs twice: the desktop layout and the phone one.
        projects: [
          { name: 'desktop', use: { ...devices['Desktop Chrome'] } },
          { name: 'phone', use: { ...devices['Pixel 7'] } }
        ]
      });
    3. Scan the component the pull request changed, in its own test, once it is open: that takes a second. Scan each shared template once, with the reflow check at 320px.

      tests/a11y/scan.spec.js
      import { test, expect } from '@playwright/test';
      import AxeBuilder from '@axe-core/playwright';
      
      const TAGS = ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'];
      const scan = (page, within) =>
        new AxeBuilder({ page }).withTags(TAGS).include(within).analyze();
      
      // What the pull request changed: the component, once it is open.
      test('newsletter dialog has no axe violations', async ({ page }) => {
        await page.goto('/');
        await page.getByRole('button', { name: 'Subscribe' }).click();
        const { violations } = await scan(page, '[role=dialog]');
        expect(violations.map((v) => v.id)).toEqual([]);
      });
      
      // Shared templates: one page each, at rest. Seconds per page.
      for (const path of ['/', '/products/example', '/checkout']) {
        test(`axe ${path}`, async ({ page }) => {
          await page.goto(path);
          const { violations } = await scan(page, 'body');
          expect(violations.map((v) => v.id)).toEqual([]);
          // Reflow (WCAG 1.4.10): no sideways scroll at 320px wide.
          await page.setViewportSize({ width: 320, height: 800 });
          const over = () => document.documentElement.scrollWidth > 320;
          expect(await page.evaluate(over)).toBe(false);
        });
      }
    4. Run it with npx playwright test.

      A template that fails today and can’t be fixed yet? List its rule ids as a baseline the test allows, and take each one off as its fix lands, so the scan fails only on new ones.

      When the scan fails, look the rule’s message up in the list of checker messages: each one links to the guide that fixes it.

      Checker messages

    Catches: What a general rule can describe: a missing name, low contrast, broken markup.

    Misses: Whether the dialog traps focus, whether the error is announced, whether the name means anything. Text over an image or gradient, which axe marks incomplete rather than failing. It never presses a key.

  4. Assert the ticket’s behaviours in the feature’s own test

    1. Ask your agent for the test skeleton once the feature is built.

      Ask your agent
      Run test_steps on: "newsletter signup dialog"
      What comes back, abridged
      test.describe('Modals that leave keyboard focus behind them', () => {
        test.fixme('Opening the dialog from the keyboard moves focus inside it.', async ({ page }) => {
          // TODO: press the keys, then assert what happened
          expect(page).toBeTruthy();
        });
      
        test.fixme('[person] A screen reader announces the dialog name when it opens.', async () => {
          // A person confirms this with a screen reader, zoom or forced colors. Not automatable.
        });
      });

      One test for each line of the ticket. Each is marked fixme, so Playwright lists it as skipped until it is written, never as passed.

    2. Move the tests into the feature’s own test file, not a separate accessibility suite.

      A separate suite is skipped when the build is slow and deleted when it flakes.

    3. Write each test: press the key, then check where focus is. Take off fixme only then.

      tests/newsletter.spec.js
      // The feature’s own test, with its accessibility requirements in it.
      test('newsletter dialog keeps focus', async ({ page }) => {
        await page.goto('/');
        const opener = page.getByRole('button', { name: 'Subscribe' });
        await opener.focus();
        await page.keyboard.press('Enter');
        const dialog = page.getByRole('dialog', { name: 'Newsletter' });
        await expect(dialog).toBeVisible();
        // Focus moved in
        await expect(dialog.locator(':focus')).toHaveCount(1);
        // and stayed in
        for (let i = 0; i < 10; i++) await page.keyboard.press('Tab');
        await expect(dialog.locator(':focus')).toHaveCount(1);
        // and came back
        await page.keyboard.press('Escape');
        await expect(opener).toBeFocused();
      });
    4. Leave every [person] test as it is.

      CI lists them as skipped on every run, so what only a person can confirm stays in view. Step 9 does them.

    Catches: Where focus goes, what each key does, which attributes change, what a live region holds. The only layer that encodes the requirement.

    Misses: What a screen reader says, and whether the words make sense to someone who can’t see the page.

  5. Run all three on every pull request

    • Who Whoever looks after CI
    • When Once
    • With GitHub Actions
    1. Save this workflow. One job runs lint, the scan and the feature tests.

      .github/workflows/accessibility.yml
      name: Accessibility
      on: pull_request
      jobs:
        accessibility:
          runs-on: ubuntu-latest
          steps:
            - uses: actions/checkout@v5
            - uses: actions/setup-node@v5
              with: { node-version: 22, cache: npm }
            - run: npm ci
            - run: npm run lint
            - run: npx playwright install --with-deps chromium
            - run: npx playwright test
              env:
                # playwright.config.js reads this as baseURL.
                BASE_URL: ${{ vars.PREVIEW_URL }}
    2. Set the repository variable PREVIEW_URL to a preview address CI can reach.

      On another CI provider, run the same commands with BASE_URL set.

    3. Make the job a required check on the main branch.

    4. Open a pull request that breaks one rule on purpose, and watch it go red.

      That is the only proof the job runs. Repeat it after any change to CI.

  6. Do the two-minute script

    • Who A person
    • When Before release
    • With a keyboard and a screen reader
    1. Take the ticket’s second list as a script. test_steps returns it with the keys to press and what should happen.

      The script for the newsletter dialog

      1. Open it with Enter on the button. You hear “Join the newsletter, dialog”.
      2. Press Tab round once. Each control is read, and nothing behind the dialog is.
      3. Press Escape. The button you started on is read again.
      4. At 200% zoom nothing is cut off. In forced colors the dialog’s edge and the focus ring are visible.
    2. Do it on a desktop, then once on a phone with VoiceOver or TalkBack.

      No desktop run covers the phone.

      Screen reader keys by task

    3. Say in the pull request who checked it, on what date, and with which screen reader and browser.

      Pull request
      Checked by [name] on [date] with [screen reader] and [browser]

      Never delete a [person] test or take off its fixme.

    You now have every behaviour on the ticket either tested on each pull request or checked by a named person.

Two traps

Green is not the same as tested.

A test that passes empty

Asked for a test, an agent asserts that the dialog is visible and calls the ticket done. The skeleton from test_steps marks every test fixme until it is written, so one that was never written is listed as skipped on every run, not as passed. In review, read each test whose fixme came off: a test with no key press and no focus assertion tests nothing.

A check that silently skips

The scan is scoped to the wrong element, the test never reaches the page it names, or the job runs on a branch nobody merges from. The deliberate failure in step 8 is how you find out; repeat it after any change to CI.

If you need me

Everything above is free and stays in your repo. I’m a senior software engineer as well as a Section 508 Trusted Tester, so when a part is hard to do alone, I can do it with you in your codebase:

A full test by hand, beyond the two-minute script
Keyboard, screen readers, zoom and forced colors, by a Section 508 Trusted Tester. From $149 a page, or $400 for a task such as checkout.
Stuck on a fix
Questions on a report are answered in writing for 14 days after it arrives. After that, work in your codebase is $150 an hour: the fix at its cause, a review of your own fix, or why a component still fails.
A barrier found by hand, kept out by your tests
A retest of your fixes is $199 a cycle. Each confirmed fix comes with a regression test for your CI and a rule for your coding agent, and both stay in your repo. If you’d rather not set up the lint and the scan yourselves, I set them up with your first audit at no extra charge.
A buyer asks for an ACR
A signed conformance record for Section 508 or EN 301 549 is $400 per standard, on top of the testing.

Write to me All prices