-
Notifications
You must be signed in to change notification settings - Fork 384
/
Copy pathProblemReportPage.swift
48 lines (36 loc) · 1.11 KB
/
ProblemReportPage.swift
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
48
//
// ProblemReportPage.swift
// MullvadVPNUITests
//
// Created by Niklas Berglund on 2024-01-26.
// Copyright © 2024 Mullvad VPN AB. All rights reserved.
//
import Foundation
import XCTest
class ProblemReportPage: Page {
@discardableResult override init(_ app: XCUIApplication) {
super.init(app)
pageAccessibilityIdentifier = .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.otherElements[AccessibilityIdentifier.problemReportAppLogsButton]
.tap()
return self
}
@discardableResult func tapSendButton() -> Self {
app.buttons[AccessibilityIdentifier.problemReportSendButton]
.tap()
return self
}
}