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

Added Identifier to inverted snapshot tests #55

Closed
wants to merge 7 commits into from

Conversation

joshmsamuels
Copy link
Collaborator

closes #51

@joshmsamuels joshmsamuels requested a review from NickEntin March 9, 2021 21:48
@joshmsamuels
Copy link
Collaborator Author

@NickEntin here is a draft PR of my fix. The reason for this being a draft is the local inversion of the entire screen instead of just the colours

Example/AccessibilitySnapshot.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
Example/Gemfile.lock Outdated Show resolved Hide resolved

@testable import AccessibilitySnapshotDemo

final class IdentifierTests: SnapshotTestCase {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of a new test class, I think we should add this test to InvertColorsTests, i.e. testInvertColorsWithIdentifier().

Example/SnapshotTests/IdentifierTests.swift Outdated Show resolved Hide resolved
Example/AccessibilitySnapshot.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
Example/Gemfile.lock Outdated Show resolved Hide resolved
@NickEntin
Copy link
Collaborator

@joshmsamuels I filed #56 to track fixing the flipped image issue

@joshmsamuels joshmsamuels force-pushed the jsamuels/inverted_add_identifier branch from 45e29f4 to 7afa51c Compare April 30, 2021 19:36
@joshmsamuels joshmsamuels requested a review from NickEntin April 30, 2021 19:48
@joshmsamuels joshmsamuels marked this pull request as ready for review April 30, 2021 19:48
@joshmsamuels
Copy link
Collaborator Author

Thanks! @NickEntin sorry for another ping but do you have any idea why some of the tests are failing? All the snapshots appear to be the same and all the tests pass locally.

It seems really odd that the iOS 12 tests are passing here but 13 & 14 are failing

@NickEntin
Copy link
Collaborator

do you have any idea why some of the tests are failing?

@joshmsamuels I'm having trouble reproducing the issue locally. See my comment in #56. Can you test locally and see which path it's taking?

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.

Snapshotting with invert colors doesn't respect snapshot identifier
2 participants