import XCTest /// Exploratory: capture the empty-state of every main tab for a FRESH, verified, /// no-data user (no residence/task/contractor/document). Used to compare empty- /// state vertical/horizontal centering across tabs. Not part of the regular run. final class EmptyStateScreenshotUITests: AuthenticatedUITestCase { // Fresh verified account, NO preconditions -> every tab is empty. // (requiresResidence stays false; nothing is seeded.) func test_captureAllTabEmptyStates() { let tabs: [(name: String, nav: () -> Void)] = [ ("01-Residences", { self.navigateToResidences() }), ("02-Tasks", { self.navigateToTasks() }), ("03-Contractors",{ self.navigateToContractors() }), ("04-Documents", { self.navigateToDocuments() }), ] for tab in tabs { tab.nav() // Let the screen + any empty-state render fully settle. RunLoop.current.run(until: Date().addingTimeInterval(2.0)) let shot = XCTAttachment(screenshot: app.screenshot()) shot.name = "EmptyState-\(tab.name)" shot.lifetime = .keepAlways add(shot) } } }