New tests: NoteEditTests (TC-133, TC-134), AppResumeTests (TC-153), InsightsEmptyStateTests (TC-043), DarkModeStylesTests (TC-022), TrialBannerTests (TC-076, TC-080), TrialWarningBannerTests (TC-033), LocalizationTests (TC-136). All pass 2/2 consecutive runs. Updated Feels_QA_Test_Plan.xlsx: 48 green (passing XCUITest coverage), 122 red (impossible/impractical for XCUITest — widgets, watch, Siri, CloudKit multi-device, biometrics, HealthKit, StoreKit purchases, iOS 26 ZStack accessibility issue blocking many settings buttons). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
936 B
Swift
35 lines
936 B
Swift
//
|
|
// AppResumeTests.swift
|
|
// Tests iOS
|
|
//
|
|
// TC-153: App resumes correctly from background.
|
|
//
|
|
|
|
import XCTest
|
|
|
|
final class AppResumeTests: BaseUITestCase {
|
|
override var seedFixture: String? { "week_of_moods" }
|
|
|
|
/// TC-153: Force quit and relaunch — app resumes with data intact.
|
|
func testAppResumes_FromBackground() {
|
|
// Verify initial state
|
|
let tabBar = TabBarScreen(app: app)
|
|
tabBar.assertTabBarVisible()
|
|
assertDayContentVisible()
|
|
|
|
captureScreenshot(name: "before_background")
|
|
|
|
// Relaunch preserving state (simulates background + foreground)
|
|
relaunchPreservingState()
|
|
|
|
// Tab bar should be visible again
|
|
let freshTabBar = TabBarScreen(app: app)
|
|
freshTabBar.assertTabBarVisible()
|
|
|
|
// Day content should still be visible (data persisted)
|
|
assertDayContentVisible()
|
|
|
|
captureScreenshot(name: "after_resume")
|
|
}
|
|
}
|