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

Test: Add interaction test for use async tracker #89

Merged
merged 5 commits into from Jun 10, 2023

Conversation

zenoplex
Copy link
Owner

TODOs

  • Add component for test
  • Add story
  • Add interaction test

@zenoplex zenoplex force-pushed the test/use-async-tracker-story branch from eaed9ad to 8eb6e4f Compare June 10, 2023 15:14
@@ -13,6 +14,7 @@ type Story = StoryObj<typeof meta>;

export const Default: Story = {
play: async ({ canvasElement }) => {
await sleep();
Copy link
Owner Author

@zenoplex zenoplex Jun 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Play function was failing without sleep.
I can see the button onClick handler is being called via useEvent.click but maybe it was clicked too fast? Nothing seems to happen on the click event.

This could be an issue with storybook.
storybookjs/storybook#18258

@zenoplex zenoplex merged commit 64c23fb into main Jun 10, 2023
12 checks passed
@zenoplex zenoplex deleted the test/use-async-tracker-story branch June 10, 2023 15:20
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.

None yet

1 participant