Skip to content

Conversation

@vee-kamunya
Copy link
Contributor

@vee-kamunya vee-kamunya commented Oct 29, 2025

📜 Tickets

Jira ticket
Github issue

💡 Description

  • Add dependency injection for TelemetryWrapperProtocol in FxAWebViewTelemetry
  • Mock TelemetryWrapper in SyncTelemetryTests to avoid calling Glean during tests
  • Add 7 new test methods to verify recordTelemetry() behavior

📝 Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code

  FxAWebViewTelemetry

  - Add dependency injection for TelemetryWrapperProtocol in FxAWebViewTelemetry
  - Mock TelemetryWrapper in SyncTelemetryTests to avoid calling Glean during tests
  - Add 7 new test methods to verify recordTelemetry() behavior
@vee-kamunya vee-kamunya requested a review from a team as a code owner October 29, 2025 17:22
Copy link
Contributor

@lmarceau lmarceau left a comment

Choose a reason for hiding this comment

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

Some nits, but looks good to me 😄 great work

@vee-kamunya
Copy link
Contributor Author

removed the spaces as well from @lmarceau 😃 @mattreaganmozilla

@lmarceau
Copy link
Contributor

@vee-kamunya FxALoginRegistrationTelemetryTests is failing no the CI pipeline, can you investigate?

@vee-kamunya
Copy link
Contributor Author

I modified the Xcode project file (firefox-ios/Client.xcodeproj/project.pbxproj) to include the existing MockTelemetryWrapper.swift file in the FxA telemetry test target's build sources. It should fix it @lmarceau

@vee-kamunya
Copy link
Contributor Author

Hello @mattreaganmozilla, could you please review this? Thanks!!

@mobiletest-ci-bot
Copy link

Messages
📖 Project coverage: 37.72%

💪 Quality guardian

1 tests files modified. You're a champion of test coverage! 🚀

🧹 Tidy commit

Just 3 file(s) touched. Thanks for keeping it clean and review-friendly!

✅ Per-file coverage

All changed files meet the threshold of 35.0%.

Client.app: Coverage: 37.08

File Coverage
FxAWebViewTelemetry.swift 100.0%

Generated by 🚫 Danger Swift against 47404d0

@lmarceau
Copy link
Contributor

lmarceau commented Nov 6, 2025

Sorry @vee-kamunya, I should have ran the build and dropped the ball here. All is good ✅ I am merging your work, thank you very much!

@lmarceau lmarceau merged commit 320596d into mozilla-mobile:main Nov 6, 2025
9 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

🚀 PR merged to main, targeting version: 145.1

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