         super.tearDown()
     }
     
-    func testExample() {
-        // Use recording to get started writing UI tests.
-        // Use XCTAssert and related functions to verify your tests produce the correct results.
+    func testAlerts() {
+        let app = XCUIApplication()
+        app.alerts["0"].buttons["Ok"].tap()
+        app.alerts["1"].buttons["Ok"].tap()
+        app.alerts["2"].buttons["Ok"].tap()
+        app.alerts["3"].buttons["Dispatch"].tap()
+        app.alerts["4"].buttons["Ok"].tap()
+        app.alerts["5"].buttons["Ok"].tap()
+        
+        let heyAlert = app.alerts["Hey"]
+        let heyAlertTextField = heyAlert.collectionViews.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element(boundBy: 1).children(matching: .textField).element
+        heyAlertTextField.typeText("hey")
+        XCTAssertNotNil(heyAlertTextField.value)
+        XCTAssertEqual(heyAlertTextField.value as! String, "hey")
+        heyAlert.buttons["Okay"].tap()
     }
-    
 }

import XCTest

class AlertsUITests: XCTestCase {
        
    override func setUp() {
        super.setUp()
        

        continueAfterFailure = false
        // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
        XCUIApplication().launch()
        
        // 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.
    }
    
