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

Reproduce missing interactions bug #129

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

trotzig
Copy link
Contributor

@trotzig trotzig commented Sep 18, 2024

I've found an issue when the first story has interactions and you are using forceHappoScreenshot. The check for whether happo is running or not uses if (currentIndex) but the first step is 0. I have a fix in mind for this but I want to make sure that we have a way to reproduce first.

@trotzig
Copy link
Contributor Author

trotzig commented Sep 18, 2024

If my theory is right here, there won't be a screenshot for "Interactive > Demo [white]-clicked" in this build.

@trotzig trotzig requested a review from lencioni September 18, 2024 08:32
I've found an issue when the first story has interactions and you are
using `forceHappoScreenshot`. The check for whether happo is running or
not uses `if (currentIndex)` but the first step is 0. I have a fix in
mind for this but I want to make sure that we have a way to reproduce
first.

A small change to how we order components helped make the Interactive -
Demo [white] example render first.
@trotzig trotzig force-pushed the reproduce-missing-interaction branch from e231adc to cae43d5 Compare September 18, 2024 08:45
@trotzig
Copy link
Contributor Author

trotzig commented Sep 18, 2024

Yep, this seems to reproduce the issue. I'll merge this and provide a fix in another PR.

@trotzig trotzig merged commit b24b582 into main Sep 18, 2024
4 of 7 checks passed
@trotzig trotzig deleted the reproduce-missing-interaction branch September 18, 2024 08:53
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.

1 participant