-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add account creation and deletion tests
- Loading branch information
1 parent
2859c5b
commit 3d803f4
Showing
29 changed files
with
358 additions
and
415 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
ios/MullvadVPN.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "swift-log", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-log.git", | ||
"state" : { | ||
"revision" : "173f567a2dfec11d74588eea82cecea555bdc0bc", | ||
"version" : "1.4.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "wireguard-apple", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/mullvad/wireguard-apple.git", | ||
"state" : { | ||
"revision" : "11a00c20dc03f2751db47e94f585c0778c7bde82" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// AccountDeletionPage.swift | ||
// MullvadVPNUITests | ||
// | ||
// Created by Niklas Berglund on 2024-01-30. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
|
||
class AccountDeletionPage: Page { | ||
@discardableResult override init(_ app: XCUIApplication) { | ||
super.init(app) | ||
|
||
self.pageAccessibilityIdentifier = .deleteAccountView | ||
waitForPageToBeShown() | ||
} | ||
|
||
@discardableResult func tapTextField() -> Self { | ||
app.textFields[AccessibilityIdentifier.deleteAccountTextField].tap() | ||
return self | ||
} | ||
|
||
@discardableResult func tapDeleteAccountButton() -> Self { | ||
guard let pageAccessibilityIdentifier = self.pageAccessibilityIdentifier else { | ||
XCTFail("Page's accessibility identifier not set") | ||
return self | ||
} | ||
|
||
app.otherElements[pageAccessibilityIdentifier].buttons[AccessibilityIdentifier.deleteButton].tap() | ||
return self | ||
} | ||
|
||
@discardableResult func tapCancelButton() -> Self { | ||
app.buttons[AccessibilityIdentifier.cancelButton].tap() | ||
return self | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// ChangeLogAlert.swift | ||
// MullvadVPNUITests | ||
// | ||
// Created by Niklas Berglund on 2024-02-20. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
|
||
class ChangeLogAlert: Page { | ||
@discardableResult override init(_ app: XCUIApplication) { | ||
super.init(app) | ||
|
||
self.pageAccessibilityIdentifier = .changeLogAlert | ||
waitForPageToBeShown() | ||
} | ||
|
||
@discardableResult func tapOkay() -> Self { | ||
app.buttons[AccessibilityIdentifier.alertOkButton].tap() | ||
return self | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// OutOfTimePage.swift | ||
// MullvadVPNUITests | ||
// | ||
// Created by Niklas Berglund on 2024-02-20. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
|
||
class OutOfTimePage: Page { | ||
@discardableResult override init(_ app: XCUIApplication) { | ||
super.init(app) | ||
|
||
self.pageAccessibilityIdentifier = .outOfTimeView | ||
waitForPageToBeShown() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.