Skip to content

Conversation

@alisonhall
Copy link
Collaborator

@alisonhall alisonhall commented Mar 14, 2024

This PR:

  • Creates a method in the test helpers to test page snapshots
  • Creates the missing unit test files
  • Includes HTML snapshot tests for all pages on the site
  • Fixes the pauseFor method to have a variable timeout
  • Renames the existing hamburger unit test file to match the php file name
  • Includes 'todo' unit test statements for files which don't have tests for the functionality

Note, the following unit test snapshots have been skipped due to not returning consistent enough results:

  • animated-gif-with-pause-button.test.js
  • carousel.test.js
  • pause-anim-control.test.js
  • video-player.test.js

Related to #51

@alisonhall alisonhall linked an issue May 28, 2024 that may be closed by this pull request
@alisonhall alisonhall marked this pull request as draft June 6, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add snapshot unit tests

2 participants