-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make layout testing code pub
#2310
Conversation
pub expected: &'a str, | ||
} | ||
|
||
pub fn diff_layouts(layouts: Vec<TestLayout<'_>>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does layout mean in this context?
From the code it does not seem like it renders anything 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm i looked at the tests bellow, this does seem to be comparing html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool i will definitely use this in the future
I think i will open a separate PR to add docs and rename these tests to snapshot tests, so for now I'm merging this in |
Description
This PR exposes the previously private
layout_tests
module underyew::tests::layout_tests
.Fixes #1413
TODO
It would be great if someone can describe the
diff_layouts
function. I'm can't come up with a way to describe that in docs.Checklist
cargo make pr-flow