Browse Source

Fix scoping for test argument.

master
Abhishek Banthia 1 year ago
parent
commit
2fb5c1b40f
  1. 4
      Clocker/ClockerUITests/OnboardingSearchTests.swift
  2. 6
      Clocker/ClockerUITests/OnboardingTests.swift

4
Clocker/ClockerUITests/OnboardingSearchTests.swift

@ -5,12 +5,14 @@ import XCTest
class OnboardingSearchTests: XCTestCase { class OnboardingSearchTests: XCTestCase {
var app: XCUIApplication! var app: XCUIApplication!
static let kOnboardingArgument = "isTestingTheOnboardingFlow"
override func setUp() { override func setUp() {
super.setUp() super.setUp()
continueAfterFailure = false continueAfterFailure = false
app = XCUIApplication() app = XCUIApplication()
app.launchArguments.append(CLOnboardingTestsLaunchArgument) app.launchArguments.append(Self.kOnboardingArgument)
app.launch() app.launch()
// Let's go to the Search View // Let's go to the Search View

6
Clocker/ClockerUITests/OnboardingTests.swift

@ -2,15 +2,15 @@
import XCTest import XCTest
let CLOnboaringTestsLaunchArgument = "isTestingTheOnboardingFlow"
class OnboardingTests: XCTestCase { class OnboardingTests: XCTestCase {
var app: XCUIApplication! var app: XCUIApplication!
static let kOnboardingTestsLaunchArgument = "isTestingTheOnboardingFlow"
override func setUp() { override func setUp() {
continueAfterFailure = false continueAfterFailure = false
app = XCUIApplication() app = XCUIApplication()
app.launchArguments.append(CLOnboardingTestsLaunchArgument) app.launchArguments.append(Self.kOnboardingTestsLaunchArgument)
app.launch() app.launch()
} }

Loading…
Cancel
Save