-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[MBL-2062] Cleanup NoShippingAtCheckout Feature Flag #2269
Changes from all commits
e2da269
8436cab
d4fcec5
beee147
7d528f5
944794e
c58d41c
0b0915d
914ca91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,17 +50,12 @@ final class PledgeRewardsSummaryTotalViewControllerTests: TestCase { | |
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, good to see these tests cleaned up. Did any other tests change or break now that the feature flag is permanently on? |
||
} | ||
|
||
func testViewWithoutReward_WithNoShippingAtCheckoutEnabled() { | ||
func testViewWithoutReward() { | ||
let project = Project.template | ||
|
||
let mockConfigClient = MockRemoteConfigClient() | ||
mockConfigClient.features = [ | ||
RemoteConfigFeature.noShippingAtCheckout.rawValue: true | ||
] | ||
|
||
orthogonalCombos([Language.en], [Device.phone4_7inch, Device.pad]) | ||
.forEach { language, device in | ||
withEnvironment(language: language, remoteConfigClient: mockConfigClient) { | ||
withEnvironment(language: language) { | ||
let controller = PledgeRewardsSummaryTotalViewController.instantiate() | ||
|
||
let data = PledgeSummaryViewData( | ||
|
@@ -87,17 +82,12 @@ final class PledgeRewardsSummaryTotalViewControllerTests: TestCase { | |
} | ||
} | ||
|
||
func testViewWithPledgeInFull_WithNoShippingAtCheckoutEnabled() { | ||
func testViewWithPledgeInFull() { | ||
let project = Project.template | ||
|
||
let mockConfigClient = MockRemoteConfigClient() | ||
mockConfigClient.features = [ | ||
RemoteConfigFeature.noShippingAtCheckout.rawValue: true | ||
] | ||
|
||
orthogonalCombos([Language.en], [Device.phone4_7inch, Device.pad]) | ||
.forEach { language, device in | ||
withEnvironment(language: language, remoteConfigClient: mockConfigClient) { | ||
withEnvironment(language: language) { | ||
let controller = PledgeRewardsSummaryTotalViewController.instantiate() | ||
|
||
let data = PledgeSummaryViewData( | ||
|
@@ -133,17 +123,12 @@ final class PledgeRewardsSummaryTotalViewControllerTests: TestCase { | |
} | ||
} | ||
|
||
func testViewWithPledgeOverTime_WithNoShippingAtCheckoutEnabled() { | ||
func testViewWithPledgeOverTime() { | ||
let project = Project.template | ||
|
||
let mockConfigClient = MockRemoteConfigClient() | ||
mockConfigClient.features = [ | ||
RemoteConfigFeature.noShippingAtCheckout.rawValue: true | ||
] | ||
|
||
orthogonalCombos([Language.en], [Device.phone4_7inch, Device.pad]) | ||
.forEach { language, device in | ||
withEnvironment(language: language, remoteConfigClient: mockConfigClient) { | ||
withEnvironment(language: language) { | ||
let controller = PledgeRewardsSummaryTotalViewController.instantiate() | ||
|
||
let data = PledgeSummaryViewData( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: These snapshots are only new because the test names changed. It would be nice to mark them as moved instead of added (I don't think that's worth doing now but definitely keep it in mind when you rename files!). Do please delete the old snapshots, though! |
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.
Nit: This comment doesn't seem relevant anymore