1234567891011121314151617181920212223242526272829303132 |
- /*****************************************************************************
- * TestHelper.swift
- * VLC for iOSUITests
- *****************************************************************************
- * Copyright (c) 2018 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Mike JS. Choi <mkchoi212 # icloud.com>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
- import Foundation
- import XCTest
- enum Tab: String {
- case Video, Audio, Server, Cloud
- case Settings, Downloads, Stream, About
- }
- struct TestHelper {
- let app: XCUIApplication
- init(_ app: XCUIApplication) {
- self.app = app
- }
- func tap(_ type: Tab) {
- app.tabBars.buttons[type.rawValue].tap()
- }
- }
|