Skip to content

Skip ConsentPane image loading in preview to fix flakiness - #13172

Merged
josephroque-stripe merged 1 commit into
masterfrom
josephroque/fix/consent-pane-screenshots
Jun 1, 2026
Merged

Skip ConsentPane image loading in preview to fix flakiness#13172
josephroque-stripe merged 1 commit into
masterfrom
josephroque/fix/consent-pane-screenshots

Conversation

@josephroque-stripe

@josephroque-stripe josephroque-stripe commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes LaunchedEffect in preview mode to prevent fallback images sometimes being rendered in snapshot tests, leading to flakiness. By skipping this attempted load entirely in previews, we ensure we keep consistent screenshots.

Once this merges, we can remove these screenshots from the quarantine. They won't run in this PR due to the quarantine

Motivation

https://jira.corp.stripe.com/browse/RUN_LINK_MOBILE-176

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
before screenshot after screenshot

Changelog

@josephroque-stripe
josephroque-stripe force-pushed the josephroque/fix/consent-pane-screenshots branch from c29a564 to bf30b35 Compare June 1, 2026 21:29
@josephroque-stripe
josephroque-stripe merged commit 16c43a3 into master Jun 1, 2026
49 checks passed
@josephroque-stripe
josephroque-stripe deleted the josephroque/fix/consent-pane-screenshots branch June 1, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants