blob: 241bf18437115f513021b63398bcfc33025be9c9 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//
// ProblemReportPage.swift
// MullvadVPNUITests
//
// Created by Niklas Berglund on 2024-01-26.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import XCTest
class ProblemReportPage: Page {
@discardableResult override init(_ app: XCUIApplication) {
super.init(app)
self.pageElement = app.otherElements[.problemReportView]
waitForPageToBeShown()
}
@discardableResult func tapEmailTextField() -> Self {
app.textFields[AccessibilityIdentifier.problemReportEmailTextField]
.tap()
return self
}
@discardableResult func tapMessageTextView() -> Self {
app.textViews[AccessibilityIdentifier.problemReportMessageTextView]
.tap()
return self
}
@discardableResult func tapViewAppLogsButton() -> Self {
app.buttons[AccessibilityIdentifier.problemReportAppLogsButton]
.tap()
return self
}
@discardableResult func tapSendButton() -> Self {
app.buttons[AccessibilityIdentifier.problemReportSendButton]
.tap()
return self
}
}
|