-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add ASTextNode2 snapshot test #935
add ASTextNode2 snapshot test #935
Conversation
🚫 CI failed with log |
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.
LGTM, but please check the failing tests. Thanks!
Ok, I am a little confused, the tests seems so comparing images from TextNode1. Will try enable record mode and rely on CI to create snapshots itself and then disable it, hopefully it can fix CI fails. |
May needs some suggestions on this. It's seems comparing with TextNode1's images. |
It appears that FBSnapshotTestCase will use whatever reference image it matching the test selector that it finds first. The code in The easiest fix is to rename the methods to e.g. |
🚫 CI failed with log |
@wsdwsd0829 It looks like the issue is that the ASTextNode1 tests are running after the ASTextNode2 tests, and there's currently no way to go back to ASTextNode1 once you enable ASTextNode2. So the TextNode1 tests are running with TextNode2 enabled. |
Interesting, I will revert setting in tear down then.
…On Tue, May 29, 2018 at 11:53 AM Adlai Holler ***@***.***> wrote:
@wsdwsd0829 <https://github.com/wsdwsd0829> It looks like the issue is
that the ASTextNode1 tests are running after the ASTextNode2 tests, and
there's currently no way to go *back* to ASTextNode1 once you enable
ASTextNode2.
So the TextNode1 tests are running with TextNode2 enabled.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#935 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFFq5ABhUHdn02EcfRED56YQcGtOgEXVks5t3Zk2gaJpZM4UJ3I0>
.
|
@wsdwsd0829 We're working on getting the CI back up and running. |
Thanks for suggestions and fixing this. |
Very great diff! This will let us iterate on ASTextNode2 safely ❤️ |
Just copy over from ASTextNode and enable experiment.
// All tests are duplicated from ASTextNodeSnapshotTests.