From 2fb5c1b40f84a8dfab80f7595883eb1fc2d70a01 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:39:22 -0400 Subject: [PATCH] Fix scoping for test argument. --- Clocker/ClockerUITests/OnboardingSearchTests.swift | 4 +++- Clocker/ClockerUITests/OnboardingTests.swift | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Clocker/ClockerUITests/OnboardingSearchTests.swift b/Clocker/ClockerUITests/OnboardingSearchTests.swift index 8e38e24..2f83674 100644 --- a/Clocker/ClockerUITests/OnboardingSearchTests.swift +++ b/Clocker/ClockerUITests/OnboardingSearchTests.swift @@ -5,12 +5,14 @@ import XCTest class OnboardingSearchTests: XCTestCase { var app: XCUIApplication! + static let kOnboardingArgument = "isTestingTheOnboardingFlow" + override func setUp() { super.setUp() continueAfterFailure = false app = XCUIApplication() - app.launchArguments.append(CLOnboardingTestsLaunchArgument) + app.launchArguments.append(Self.kOnboardingArgument) app.launch() // Let's go to the Search View diff --git a/Clocker/ClockerUITests/OnboardingTests.swift b/Clocker/ClockerUITests/OnboardingTests.swift index f857f69..7f15bee 100644 --- a/Clocker/ClockerUITests/OnboardingTests.swift +++ b/Clocker/ClockerUITests/OnboardingTests.swift @@ -2,15 +2,15 @@ import XCTest -let CLOnboaringTestsLaunchArgument = "isTestingTheOnboardingFlow" - class OnboardingTests: XCTestCase { var app: XCUIApplication! + + static let kOnboardingTestsLaunchArgument = "isTestingTheOnboardingFlow" override func setUp() { continueAfterFailure = false app = XCUIApplication() - app.launchArguments.append(CLOnboardingTestsLaunchArgument) + app.launchArguments.append(Self.kOnboardingTestsLaunchArgument) app.launch() }