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

[NT-484] Tracking event for Cancel Pledge #917

Merged
merged 6 commits into from
Oct 29, 2019
Merged

Conversation

cdolm92
Copy link
Contributor

@cdolm92 cdolm92 commented Oct 28, 2019

📲 What

Improvements in monitoring user behavior for v1 checkout. This tracks canceled pledges.

🤔 Why

We now have the Cancel Pledge Button Clicked event

✅ Acceptance criteria

  • Navigate to a live and backed project. Go to the manage menu and tap Cancel Pledge. Tap on Yes, Cancel it button and you should see the event, "Cancel Pledge Button Clicked" triggered.

@cdolm92 cdolm92 requested a review from ifbarrera October 28, 2019 15:53
@cdolm92 cdolm92 requested review from Scollaco and removed request for ifbarrera October 28, 2019 17:25
@cdolm92 cdolm92 assigned Scollaco and unassigned ifbarrera Oct 28, 2019
Copy link
Contributor

@Scollaco Scollaco left a comment

Choose a reason for hiding this comment

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

Very good job, @cdolm92 ! I left a comment but it looks good otherwise.

self.vm.inputs.configure(with: .template, backing: .template)
self.vm.inputs.viewDidLoad()

self.cancelPledgeButtonEnabled.assertValues([true])
Copy link
Contributor

Choose a reason for hiding this comment

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

The cancelPledgeButton status is already being tested in other place and it's not so useful here since you're only testing the tracking. Instead, I would replace this line with XCTAssertEqual([], self.trackingClient.events) to prove that the event is only tracked after the button is tapped.

@cdolm92 cdolm92 merged commit 40f7ca4 into master Oct 29, 2019
@cdolm92 cdolm92 deleted the cancel-pledge-event branch October 29, 2019 15:52
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.

3 participants