Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.58 KB

TODO.md

File metadata and controls

39 lines (29 loc) · 1.58 KB

To do

Not an exhaustive list, by any means; this is just as I remember to add things.

Components

  • Component page template.
  • HMRC Account header needs its own layout to work properly.
  • Service timeout examples need their own pages in iframes.
  • Error summary final example needs an iframe.
  • Needs a form handler to return error states?
  • Run all tests again once finished, for newer screenshots.
  • Split components.js up so that each component has its own component.js instead. (abandoned the idea for now, but a PR is welcome if you’re up for it)
  • Add a :target class for the in-page navigation.
  • Move each component id from heading to .component-section

Macros

Most of this has been my ADHD brain making things up as I go, so there are lots of areas which could be improved with macros.

  • Page title
  • Page header
  • In-page navigation
  • figure/figcaption
  • “What we are testing in this component” (driven by data from components.js)
  • Add WCAG tags to what we’re testing, so people know why they’re testing things.

Cypress tests

  • Error summary: all links should have a valid target.
  • Error message: “Error:” prefix should exist.
  • Page title: First section should match the page heading.
  • UTR: Does Cypress trigger the telephone helper?
  • Cypress Warning: cy.server() has been deprecated and will be moved to a plugin in a future release. Consider migrating to using cy.intercept() instead.

Project

  • Split tests off into a plugin repo for service teams.