Skip to content

[Conditional Configurability] More tests#3156

Merged
vegaro merged 5 commits into
cesar/conditional-configurabilityfrom
cesar/more-tests
Mar 4, 2026
Merged

[Conditional Configurability] More tests#3156
vegaro merged 5 commits into
cesar/conditional-configurabilityfrom
cesar/more-tests

Conversation

@vegaro

@vegaro vegaro commented Feb 27, 2026

Copy link
Copy Markdown
Member

Note

Low Risk
Test-only changes that broaden coverage for conditional override evaluation and compose visibility; minimal risk beyond potential CI/runtime cost from added UI tests.

Overview
Expands BuildPresentedPartialTests to cover more edge cases in override selection/merging, including last-match wins behavior, intro_offer/promo_offer operator handling (equals/not_equals), and variable type-mismatch scenarios.

Adds a large new VisibilityConditionTests suite exercising Compose rendering for conditional visibility/styling across components (carousel/timeline/video/text/stack/tabs), including interactions driven by selected_package, sibling independence, and footer/body cross-effects.

Updates test helpers (FakePaywallState, test toComponentsPaywallState) to support injecting customVariables and a stickyFooter so the new UI tests can build realistic states.

Written by Cursor Bugbot for commit c0c5ed6. This will update automatically on new commits. Configure here.

@vegaro vegaro added the pr:other label Mar 3, 2026
@vegaro vegaro marked this pull request as ready for review March 3, 2026 11:40
@vegaro vegaro requested a review from a team as a code owner March 3, 2026 11:40
@vegaro vegaro requested a review from facumenzella March 3, 2026 11:40
@RevenueCat-Danger-Bot

Copy link
Copy Markdown
1 Warning
⚠️ This PR increases the size of the repo by more than 100.00 KB (increased by 134.59 KB).

Generated by 🚫 Danger

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

text = stackChildTextKey,
color = textColor,
visible = false,
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test child component visibility wrong, vacuously passes

Medium Severity

The test Parent stack hidden overrides child visible override is meant to verify that a hidden parent overrides a child's visible=true state, as stated in the doc comment ("even if the child has its own override setting visible=true"). However, childText is constructed with visible = false and has no override to make it visible. This means assertDoesNotExist() at the end vacuously passes — the child was never going to appear regardless of the parent's visibility logic. If the parent-hides-children propagation is ever broken, this test will not catch it.

Fix in Cursor Fix in Web

@codecov

codecov Bot commented Mar 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.23%. Comparing base (50c68c4) to head (c0c5ed6).
⚠️ Report is 29 commits behind head on cesar/conditional-configurability.

Additional details and impacted files
@@                        Coverage Diff                         @@
##           cesar/conditional-configurability    #3156   +/-   ##
==================================================================
  Coverage                              79.23%   79.23%           
==================================================================
  Files                                    347      347           
  Lines                                  13930    13930           
  Branches                                1889     1889           
==================================================================
  Hits                                   11038    11038           
  Misses                                  2109     2109           
  Partials                                 783      783           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vegaro vegaro merged commit 7229d23 into cesar/conditional-configurability Mar 4, 2026
32 checks passed
@vegaro vegaro deleted the cesar/more-tests branch March 4, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants