import InlineSnapshotTesting import TestCases import XCTest final class iOS16_BasicsTests: BaseIntegrationTests { @MainActor override func setUpWithError() throws { try super.setUpWithError() self.app.buttons["iOS 16"].tap() self.app.buttons["Basics"].tap() self.clearLogs() // SnapshotTesting.isRecording = true } @MainActor func testBasics() { XCTAssertEqual(self.app.staticTexts["0"].exists, true) XCTAssertEqual(self.app.staticTexts["1"].exists, false) self.app.buttons["Increment"].tap() XCTAssertEqual(self.app.staticTexts["0"].exists, false) XCTAssertEqual(self.app.staticTexts["1"].exists, true) self.assertLogs { """ BasicsView.body ViewStoreOf.deinit ViewStoreOf.init WithViewStoreOf.body """ } self.app.buttons["Decrement"].tap() XCTAssertEqual(self.app.staticTexts["0"].exists, true) XCTAssertEqual(self.app.staticTexts["1"].exists, false) self.assertLogs { """ BasicsView.body ViewStoreOf.deinit ViewStoreOf.init WithViewStoreOf.body """ } } }