blob: 0b53d6000eddfcf73926f819875dedfe4233b9a3 (
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
26
27
28
|
//
// DaitaPromptAlert.swift
// MullvadVPNUITests
//
// Created by Mojgan on 2024-08-15.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import XCTest
class DaitaPromptAlert: Page {
@discardableResult override init(_ app: XCUIApplication) {
super.init(app)
self.pageElement = app.otherElements[.daitaPromptAlert]
waitForPageToBeShown()
}
@discardableResult func tapEnableAnyway() -> Self {
app.buttons[AccessibilityIdentifier.daitaConfirmAlertEnableButton].tap()
return self
}
@discardableResult func tapBack() -> Self {
app.buttons[AccessibilityIdentifier.daitaConfirmAlertBackButton].tap()
return self
}
}
|