markafitzgerald1 / cribbage-trainer

Two-player cribbage discard and play improvement tool.
Mozilla Public License 2.0
1 stars 0 forks source link

🤖 test(Playwright+Storybook): Change sort order #86

Closed markafitzgerald1 closed 4 months ago

markafitzgerald1 commented 4 months ago

...in order to more thoroughly test all UI functionality in a single 'happy path' e2e test. Added Storybook interaction tests of the same potentially redundant but useful as a starting point for deciding whether to add such tests via Playwright, Storybook or both in the future.

Also corrected class name of HandCard and updated dependencies.

markafitzgerald1 commented 4 months ago

The Storybook Interaction tests in this draft PR fail if there is an act() in the production code under test. However, the Playwright e2e tests will not fail as they run again the development version of the application served up by npm start or vite. Replacing that dev server with a production version via npm run build then serving via http-server on /cribbage-trainer reproduces the sort failure when act() is in the sort UI code.

TODO: