Paywalls: Add initial snapshot testings for RevenueCatUI library#1432
Merged
tonidero merged 8 commits intoNov 3, 2023
Merged
Conversation
81009f2 to
f069cc2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1432 +/- ##
=======================================
Coverage 84.27% 84.27%
=======================================
Files 197 197
Lines 6626 6626
Branches 960 960
=======================================
Hits 5584 5584
Misses 674 674
Partials 368 368 ☔ View full report in Codecov by Sentry. |
NachoSoto
approved these changes
Nov 3, 2023
| } | ||
|
|
||
| /** | ||
| * Base class for RevenueCat Snapshot tests |
| orientation = ScreenOrientation.LANDSCAPE | ||
| ) | ||
|
|
||
| internal val testConfigs = listOf( |
Comment on lines
+54
to
+60
| fun templateFullScreen() { | ||
| screenshotTest { | ||
| InternalPaywall( | ||
| options = PaywallOptions.Builder(dismissRequest = {}).build(), | ||
| viewModel = MockViewModel(offering = testConfig.offering), | ||
| ) | ||
| } |
Contributor
There was a problem hiding this comment.
This is very nice. If I did iOS again I'd definitely do it like this.
| ) | ||
|
|
||
| @JvmStatic | ||
| @Parameterized.Parameters(name = "{0}") |
9518f63 to
7d3672c
Compare
NachoSoto
pushed a commit
that referenced
this pull request
Nov 6, 2023
**This is an automatic release.** ### New Features * `StoreProduct`: new `pricePerWeek` and `pricePerYear` (#1426) via NachoSoto (@NachoSoto) ### RevenueCatUI * Fix RevenueCatUI API issues and add API tests (#1433) via Toni Rico (@tonidero) * Paywalls: Add initial snapshot testings for RevenueCatUI library (#1432) via Toni Rico (@tonidero) * `Paywalls`: new `{{ sub_price_per_week }}` variable (#1427) via NachoSoto (@NachoSoto) * `Paywalls`: new `{{ sub_relative_discount }}` variable (#1425) via NachoSoto (@NachoSoto) ### Dependency Updates * Bump fastlane-plugin-revenuecat_internal from `a297205` to `0ddee10` (#1431) via dependabot[bot] (@dependabot[bot]) ### Other Changes * `Offering`: restore constructor with no `PaywallData` (#1437) via NachoSoto (@NachoSoto) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This uses paparazzi to test some basic combination matrix of the different templates settings combinations. Currently testing each template in:
We might want to refine this list later on.
This is currently working locally, but need to test the CI side and will also need to fix some issues discovered during this first pass. Snapshots in: RevenueCat/purchases-android-snapshots#2