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

Explicitly configure layouts in snapshot tests #2389

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

squarejesse
Copy link
Contributor

We weren't fully configuring Row and Column layouts, which caused the (undocumented) yoga defaults to be used in tests.

We weren't fully configuring Row and Column layouts, which caused
the (undocumented) yoga defaults to be used in tests.
text = movies.first(),
modifier = Modifier
.then(HorizontalAlignmentImpl(CrossAxisAlignment.Stretch))
.then(VerticalAlignmentImpl(CrossAxisAlignment.Stretch)),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This restores the old behavior to preserve the expectation of the test

@squarejesse squarejesse merged commit aeb1fb8 into trunk Oct 17, 2024
11 checks passed
@squarejesse squarejesse deleted the jwilson.1017.tests_match_defaults branch October 17, 2024 21:24
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.

2 participants