summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPNUITests/Pages/RevokedDevicePage.swift
blob: bd3750fac0ac222e03016b9111e6f7ab26d79d85 (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
//
//  RevokedDevicePage.swift
//  MullvadVPNUITests
//
//  Created by Niklas Berglund on 2024-03-08.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation
import XCTest

class RevokedDevicePage: Page {
    @discardableResult override init(_ app: XCUIApplication) {
        super.init(app)

        self.pageElement = app.otherElements[.revokedDeviceView]
        waitForPageToBeShown()
    }

    @discardableResult func tapGoToLogin() -> Self {
        app.buttons[AccessibilityIdentifier.revokedDeviceLoginButton]
            .tap()

        return self
    }
}