-
Notifications
You must be signed in to change notification settings - Fork 384
/
Copy pathSettingsTests.swift
41 lines (34 loc) · 1020 Bytes
/
SettingsTests.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
//
// SettingsTests.swift
// MullvadVPNUITests
//
// Created by Niklas Berglund on 2024-02-23.
// Copyright © 2024 Mullvad VPN AB. All rights reserved.
//
import Foundation
import XCTest
class SettingsTests: LoggedOutUITestCase {
func testSendProblemReport() throws {
#if MULLVAD_ENVIRONMENT_STAGING
let shouldSkipTest = false
#else
let shouldSkipTest = true
#endif
try XCTSkipIf(shouldSkipTest, "This test should only run in the staging environment")
HeaderBar(app)
.tapSettingsButton()
SettingsPage(app)
.tapReportAProblemCell()
ProblemReportPage(app)
.tapEmailTextField()
.enterText("cookie@mullvad.net")
.tapMessageTextView()
.enterText("""
Dear support
This is a problem report from an iOS app test.
""")
.tapKeyboardDoneButton()
.tapSendButton()
ProblemReportSubmittedPage(app)
}
}