ucfopen / Materia

Engage students with easily embedded apps for online courses. Supercharge your course with compelling experiences and game mechanics.
https://ucfopen.github.io/Materia-Docs/
GNU Affero General Public License v3.0
36 stars 33 forks source link

Issue/react unit tests - Part 1 #1452

Closed cayb0rg closed 1 year ago

cayb0rg commented 1 year ago

Note: This adds the dependency package "jest-environment-dom" to package.json.

Run rm -rf node_modules && yarn install to update

React Unit Tests Part One

This PR only covers the following tests:

To run, use the command: yarn test widget-player.test.js widget-creator.test.js support-page.test.js widget-admin-page.test.js

Running yarn test will include tests from the old dashboard as well as tests that have not been implemented (such as the collaborator and settings dialog).

Issues fixed

Widget Admin

Widget Creator

Support / Admin Pages

Collaborate Dialog

Other Issues Fixed

History

This was originally #1402. However, since that PR, the creator and player race issues have been solved. I pulled the unit tests from that PR and updated them to account for new changes.

Pages to do in future parts