Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snapshot unit tests #68

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

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