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

Storybook Tournament Test Play Through #291

Open
ddfridley opened this issue Mar 14, 2025 · 0 comments
Open

Storybook Tournament Test Play Through #291

ddfridley opened this issue Mar 14, 2025 · 0 comments
Labels

Comments

@ddfridley
Copy link
Contributor

Add a test case in stories/tournament.stories.jsx that uses the play method to fill in data for the tournament, for all the steps.

Then expect the deliberation context to match. See stories/why-step.stories.jsx for how to use deliberationContextData

Then for each of the steps in app/components/steps their handleOnDone function calls window.socket.emit to send an api call to the server. But in storybook we are grabbing those calls and saving them. expect all the api calls to match.
See stories/why-step-stories, for how to setup and use _socketEmitHandler and _socketEmitHandlerResults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant