-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: Replace old verifyInAllDeviceSizes
& verifyInAllIPhoneSizes
with the new ones from the SnapshotHelper
- WPB-10488
#1773
fix: Replace old verifyInAllDeviceSizes
& verifyInAllIPhoneSizes
with the new ones from the SnapshotHelper
- WPB-10488
#1773
Conversation
Also make sure we set the snapshotHelper to nil when we tearDown.
We were using the same phone config on two places and with those changes we try to simplify the setup.
Removing <<<<<<< HEAD
verifyInAllDeviceSizes
& verifyInAllIPhoneSizes
with the new ones from the SnapshotHelper
- WPB-10488verifyInAllDeviceSizes
& verifyInAllIPhoneSizes
with the new ones from the SnapshotHelper
- WPB-10488
Test Results 2 files 303 suites 2m 23s ⏱️ Results for commit 8d6c7de. ♻️ This comment has been updated with latest results. |
Datadog ReportBranch report: ✅ 0 Failed, 1858 Passed, 0 Skipped, 7.05s Total Time |
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.
I love that despite the added doc comments this PR deletes more than it adds!
That's the goal! 🎉 |
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.
nice 👍
With this PR I replace the old
verifyInAllDeviceSizes
&verifyInAllIPhoneSizes
with the new ones coming from theSnapshotHelper
. The goal is to centralize every method related to snapshot testing to theSnapshotHelper
. In addition to that I cleaned things up a bit by removing to methods from theXCTestCase+SnapshotTesting.swift
and organize test classes a bit.func verifyInAllPhoneWidths( matching value: UIViewController..
func verify<Value, Format>(matching value: Value...