Tests: corrige 3 tests desfasados y añade recorrido UI del layout adaptativo

- ReviewPromptServiceTests: la regla vigente pide 2 check-ins, no 3.
- MonthlyCheckInViewTests: el día 1 cae en el periodo de gracia (20 días);
  usar el día 25 para etiquetar febrero.
- SettingsViewModelTests: isPremium llega por receive(on: main); dar una
  vuelta de run loop antes de actuar.
- DuoLayoutUITests: recorre tabs, split views e inspector con capturas
  (ejecutar en iPhone 17 Pro y iPad mini). ScreenshotMode oculta los tips de
  TipKit; identificador de accesibilidad en el botón de Quick Update.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1u4K16xy7eQVtgsYNZ9Vn
This commit is contained in:
alexandrev-tibco
2026-09-16 15:13:10 +02:00
parent 6774d76146
commit 171023a411
6 changed files with 108 additions and 2 deletions
@@ -24,6 +24,9 @@ enum ScreenshotMode {
// the premium charts without a StoreKit purchase. `--no-premium` keeps it
// off to test the free-tier experience (locked charts, teasers).
d.set(!CommandLine.arguments.contains("--no-premium"), forKey: "debugPremiumOverride")
// TipKit popovers cover toolbar buttons and swallow the first tap in
// automated walkthroughs keep them out of captures.
Tips.hideAllTipsForTesting()
}
/// Seed demo data (no-op if the store already has sources). Called once Core Data
@@ -84,6 +84,7 @@ struct DashboardView: View {
} label: {
Image(systemName: "plus.circle.fill")
}
.accessibilityIdentifier("dashboard.quickUpdate")
.popoverTip(QuickUpdateTip())
}
ToolbarItem(placement: .topBarTrailing) {