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

test: in-app message displayed on wrong page #357

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

mrehan27
Copy link
Contributor

@mrehan27 mrehan27 commented Jun 11, 2024

part of MBL-353

Changes

  • Updated BaseIntegrationTest to allow adding modules when initializing the SDK
  • Added tests to validate that in-app messages should not be displayed on the wrong page
  • Added Gist helper extensions to allow mocking the behavior of actual in-app message

@mrehan27 mrehan27 self-assigned this Jun 11, 2024
Copy link

github-actions bot commented Jun 11, 2024

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


  • java_layout: rehan/mbl-353-in-app-tests (1718862523)
  • kotlin_compose: rehan/mbl-353-in-app-tests (1718862532)

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.78%. Comparing base (d9388a3) to head (6bb5c99).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #357      +/-   ##
============================================
- Coverage     54.32%   52.78%   -1.54%     
  Complexity      282      282              
============================================
  Files           109      109              
  Lines          2511     2582      +71     
  Branches        355      366      +11     
============================================
- Hits           1364     1363       -1     
- Misses         1025     1095      +70     
- Partials        122      124       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Build available to test
Version: rehan-mbl-353-in-app-tests-SNAPSHOT
Repository: https://s01.oss.sonatype.org/content/repositories/snapshots/

Copy link

github-actions bot commented Jun 11, 2024

📏 SDK Binary Size Comparison Report

No changes detected in SDK binary size ✅

@mrehan27 mrehan27 requested a review from a team June 12, 2024 10:44
@mrehan27 mrehan27 marked this pull request as ready for review June 12, 2024 10:45
Copy link
Contributor

@Shahroz16 Shahroz16 left a comment

Choose a reason for hiding this comment

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

This can be alot lighter but given the way webclient is setup right now, this does the job ! thank you for adding this.

Comment on lines +89 to +91
parameters = buildMap {
put("route", route)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
parameters = buildMap {
put("route", route)
}
parameters = mapOf("route" to route)

buildMap seems overkill considering the use-case? 😄

Base automatically changed from rehan/mbl-353-in-app-fix to main June 17, 2024 20:39
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.

None yet

2 participants