Add 9 new UI tests and complete QA test plan triage (170/170)
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>
This commit is contained in:
34
Tests iOS/AppResumeTests.swift
Normal file
34
Tests iOS/AppResumeTests.swift
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user