Explorar el Código

Remove left over UI Test code

polscm32 aka Marvout hace 1 año
padre
commit
93d539cc61

+ 0 - 59
Trio Watch App Tests/TrioWatchAppUITests.swift

@@ -1,59 +0,0 @@
-import XCTest
-
-final class TrioWatchAppUITests: XCTestCase {
-    var app: XCUIApplication!
-
-    override func setUpWithError() throws {
-        continueAfterFailure = false
-        app = XCUIApplication()
-        app.launch()
-    }
-
-    func testMainViewElements() throws {
-        // Test presence of main UI elements
-        XCTAssertTrue(app.staticTexts["--"].exists) // Initial glucose value
-        XCTAssertTrue(app.buttons["plus"].exists) // Treatment button
-
-        // Test IOB and COB elements
-        let iobElement = app.staticTexts.matching(identifier: "iob").firstMatch
-        let cobElement = app.staticTexts.matching(identifier: "cob").firstMatch
-        XCTAssertTrue(iobElement.exists)
-        XCTAssertTrue(cobElement.exists)
-    }
-
-    func testTreatmentMenu() throws {
-        // Open treatment menu
-        app.buttons["plus"].tap()
-
-        // Verify treatment options
-        XCTAssertTrue(app.buttons["Carbs"].exists)
-        XCTAssertTrue(app.buttons["Bolus"].exists)
-        XCTAssertTrue(app.buttons["Meal Bolus"].exists)
-    }
-
-    func testBolusWorkflow() throws {
-        // Open treatment menu
-        app.buttons["plus"].tap()
-
-        // Select bolus option
-        app.buttons["Bolus"].tap()
-
-        // Verify bolus input elements
-        XCTAssertTrue(app.buttons["minus.circle.fill"].exists)
-        XCTAssertTrue(app.buttons["plus.circle.fill"].exists)
-        XCTAssertTrue(app.buttons["Log Bolus"].exists)
-    }
-
-    func testCarbsWorkflow() throws {
-        // Open treatment menu
-        app.buttons["plus"].tap()
-
-        // Select carbs option
-        app.buttons["Carbs"].tap()
-
-        // Verify carbs input elements
-        XCTAssertTrue(app.buttons["minus.circle.fill"].exists)
-        XCTAssertTrue(app.buttons["plus.circle.fill"].exists)
-        XCTAssertTrue(app.buttons["Log Carbs"].exists)
-    }
-}

+ 0 - 43
Trio Watch AppUITests/Trio_Watch_AppUITests.swift

@@ -1,43 +0,0 @@
-//
-//  Trio_Watch_AppUITests.swift
-//  Trio Watch AppUITests
-//
-//  Created by Marvin Polscheit on 08.01.25.
-//
-
-import XCTest
-
-final class Trio_Watch_AppUITests: XCTestCase {
-
-    override func setUpWithError() throws {
-        // Put setup code here. This method is called before the invocation of each test method in the class.
-
-        // In UI tests it is usually best to stop immediately when a failure occurs.
-        continueAfterFailure = false
-
-        // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
-    }
-
-    override func tearDownWithError() throws {
-        // Put teardown code here. This method is called after the invocation of each test method in the class.
-    }
-
-    @MainActor
-    func testExample() throws {
-        // UI tests must launch the application that they test.
-        let app = XCUIApplication()
-        app.launch()
-
-        // Use XCTAssert and related functions to verify your tests produce the correct results.
-    }
-
-    @MainActor
-    func testLaunchPerformance() throws {
-        if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
-            // This measures how long it takes to launch your application.
-            measure(metrics: [XCTApplicationLaunchMetric()]) {
-                XCUIApplication().launch()
-            }
-        }
-    }
-}

+ 0 - 33
Trio Watch AppUITests/Trio_Watch_AppUITestsLaunchTests.swift

@@ -1,33 +0,0 @@
-//
-//  Trio_Watch_AppUITestsLaunchTests.swift
-//  Trio Watch AppUITests
-//
-//  Created by Marvin Polscheit on 08.01.25.
-//
-
-import XCTest
-
-final class Trio_Watch_AppUITestsLaunchTests: XCTestCase {
-
-    override class var runsForEachTargetApplicationUIConfiguration: Bool {
-        true
-    }
-
-    override func setUpWithError() throws {
-        continueAfterFailure = false
-    }
-
-    @MainActor
-    func testLaunch() throws {
-        let app = XCUIApplication()
-        app.launch()
-
-        // Insert steps here to perform after app launch but before taking a screenshot,
-        // such as logging into a test account or navigating somewhere in the app
-
-        let attachment = XCTAttachment(screenshot: app.screenshot())
-        attachment.name = "Launch Screen"
-        attachment.lifetime = .keepAlways
-        add(attachment)
-    }
-}

+ 0 - 2
Trio.xcodeproj/project.pbxproj

@@ -1288,7 +1288,6 @@
 /* End PBXFileReference section */
 /* End PBXFileReference section */
 
 
 /* Begin PBXFileSystemSynchronizedRootGroup section */
 /* Begin PBXFileSystemSynchronizedRootGroup section */
-		BD432C942D2E80F600D1EB79 /* Trio Watch AppUITests */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = "Trio Watch AppUITests"; sourceTree = "<group>"; };
 		BDFF7A9E2D25FA970016C40C /* Preview Content */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = "Preview Content"; sourceTree = "<group>"; };
 		BDFF7A9E2D25FA970016C40C /* Preview Content */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = "Preview Content"; sourceTree = "<group>"; };
 		DDCEBF412CC1B42500DF4C36 /* Views */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = Views; sourceTree = "<group>"; };
 		DDCEBF412CC1B42500DF4C36 /* Views */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = Views; sourceTree = "<group>"; };
 /* End PBXFileSystemSynchronizedRootGroup section */
 /* End PBXFileSystemSynchronizedRootGroup section */
@@ -1983,7 +1982,6 @@
 				CE1F6DE62BAF1A180064EB8D /* BuildDetails.plist */,
 				CE1F6DE62BAF1A180064EB8D /* BuildDetails.plist */,
 				38F3783A2613555C009DB701 /* Config.xcconfig */,
 				38F3783A2613555C009DB701 /* Config.xcconfig */,
 				BD1CF8B72C1A4A8400CB930A /* ConfigOverride.xcconfig */,
 				BD1CF8B72C1A4A8400CB930A /* ConfigOverride.xcconfig */,
-				BD432C942D2E80F600D1EB79 /* Trio Watch AppUITests */,
 				3818AA48274C267000843DB3 /* Frameworks */,
 				3818AA48274C267000843DB3 /* Frameworks */,
 				6B1A8D1C2B14D91600E76752 /* LiveActivity */,
 				6B1A8D1C2B14D91600E76752 /* LiveActivity */,
 				587A54C82BCDCE0F009D38E2 /* Model */,
 				587A54C82BCDCE0F009D38E2 /* Model */,