/***************************************************************************** * TestHelper.swift * VLC for iOSUITests ***************************************************************************** * Copyright (c) 2018 VideoLAN. All rights reserved. * $Id$ * * Authors: Mike JS. Choi * * 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() } }