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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EP-319] Page Viewed (change_payment) #1406

Merged
merged 3 commits into from
Mar 25, 2021

Conversation

singhhari
Copy link
Contributor

馃摬 What

Extending the event tracking functionality of our PledgeViewModel to handle a Page Viewed event specifically for when the payment method is changed.

馃 Why

Phase 3 Segment implementation

@codecov
Copy link

codecov bot commented Mar 24, 2021

Codecov Report

Merging #1406 (19a4e32) into master (599717c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1406   +/-   ##
=======================================
  Coverage   86.10%   86.11%           
=======================================
  Files        1104     1104           
  Lines       97874    97908   +34     
=======================================
+ Hits        84278    84312   +34     
  Misses      13596    13596           
Impacted Files Coverage 螖
Library/Tracking/KSRAnalytics.swift 84.64% <100.00%> (+0.15%) 猬嗭笍
Library/Tracking/KSRAnalyticsTests.swift 100.00% <100.00%> (酶)
Library/ViewModels/PledgeViewModel.swift 99.73% <100.00%> (-0.01%) 猬囷笍
Library/ViewModels/PledgeViewModelTests.swift 100.00% <100.00%> (酶)

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 599717c...19a4e32. Read the comment docs.

@@ -734,22 +734,21 @@ final class KSRAnalyticsTests: TestCase {
self.assertProjectProperties(segmentClient.properties.last)
}

func testTrackCheckoutPaymentMethodViewed() {
func testTrackCheckoutPaymentMethodViewed_PledgeViewContext_Pledge() {
Copy link
Contributor

Choose a reason for hiding this comment

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

So there's a similar test inside testContextLocationProperties(), maybe we delete them in favour on the methods you created?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I see. Pushed up a commit with the updates.

Library/Tracking/KSRAnalyticsTests.swift Show resolved Hide resolved
@singhhari singhhari merged commit b67b596 into master Mar 25, 2021
@singhhari singhhari deleted the EP-319-page-viewed-change-payment branch March 25, 2021 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants