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

Only capture test snapshots after a frame completes #2455

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

JakeWharton
Copy link
Collaborator

Otherwise we can observe partial changes to the node tree in cases like when movableContentOf is used.

Refs #1902


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

Otherwise we can observe partial changes to the node tree in cases like when movableContentOf is used.
Copy link
Contributor

@squarejesse squarejesse left a comment

Choose a reason for hiding this comment

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

The code also reads better with this fix. nice

Comment on lines +67 to +69
assertThat(tester.awaitSnapshot()).isEqualTo(1)
isRow = false
assertThat(tester.awaitSnapshot()).isEqualTo(2)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In case you're wondering, these values were 2 and 4 prior to this change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

oooh I like this

@JakeWharton JakeWharton merged commit 521d17d into trunk Nov 15, 2024
11 checks passed
@JakeWharton JakeWharton deleted the jw.test-snapshot-change.2024-11-15 branch November 15, 2024 21:21
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.

4 participants