blob: 49516675bc87dd6a38dc922106c9824f5426b45b (
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 © 2025 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
}
}
|