Closed markafitzgerald1 closed 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:
npx --no-install vite preview
serves up on port 4173
.
...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.