blob: 0f723af612decbca7944fa689557daafea0964f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//
// Alert.swift
// MullvadVPNUITests
//
// Created by Niklas Berglund on 2024-01-10.
// Copyright © 2024 Mullvad VPN AB. All rights reserved.
//
import Foundation
import XCTest
/// Generic alert "page"
class Alert: Page {
@discardableResult override init(_ app: XCUIApplication) {
super.init(app)
self.pageElement = app.otherElements[.alertContainerView]
waitForPageToBeShown()
}
@discardableResult func tapOkay() -> Self {
app.buttons[AccessibilityIdentifier.alertOkButton].tap()
return self
}
}
|