diff --git a/Clocker/AppDelegate.swift b/Clocker/AppDelegate.swift index 6f265da..d2f9169 100644 --- a/Clocker/AppDelegate.swift +++ b/Clocker/AppDelegate.swift @@ -91,7 +91,7 @@ open class AppDelegate: NSObject, NSApplicationDelegate { private var controller: OnboardingController? private func showOnboardingFlowIfEligible() { - let isTestInProgress = ProcessInfo.processInfo.arguments.contains(CLOnboaringTestsLaunchArgument) + let isTestInProgress = ProcessInfo.processInfo.arguments.contains(CLOnboardingTestsLaunchArgument) let shouldLaunchOnboarding = (DataStore.shared().retrieve(key: CLShowOnboardingFlow) == nil && DataStore.shared().timezones().isEmpty) diff --git a/Clocker/ClockerUITests/OnboardingSearchTests.swift b/Clocker/ClockerUITests/OnboardingSearchTests.swift index 87f2bfd..8e38e24 100644 --- a/Clocker/ClockerUITests/OnboardingSearchTests.swift +++ b/Clocker/ClockerUITests/OnboardingSearchTests.swift @@ -10,7 +10,7 @@ class OnboardingSearchTests: XCTestCase { continueAfterFailure = false app = XCUIApplication() - app.launchArguments.append(CLOnboaringTestsLaunchArgument) + app.launchArguments.append(CLOnboardingTestsLaunchArgument) app.launch() // Let's go to the Search View diff --git a/Clocker/ClockerUITests/OnboardingTests.swift b/Clocker/ClockerUITests/OnboardingTests.swift index e97b8b0..f857f69 100644 --- a/Clocker/ClockerUITests/OnboardingTests.swift +++ b/Clocker/ClockerUITests/OnboardingTests.swift @@ -10,7 +10,7 @@ class OnboardingTests: XCTestCase { override func setUp() { continueAfterFailure = false app = XCUIApplication() - app.launchArguments.append(CLOnboaringTestsLaunchArgument) + app.launchArguments.append(CLOnboardingTestsLaunchArgument) app.launch() } diff --git a/Clocker/Onboarding/OnboardingParentViewController.swift b/Clocker/Onboarding/OnboardingParentViewController.swift index 80d7c68..b3f2b30 100644 --- a/Clocker/Onboarding/OnboardingParentViewController.swift +++ b/Clocker/Onboarding/OnboardingParentViewController.swift @@ -220,7 +220,7 @@ class OnboardingParentViewController: NSViewController { view.window?.close() - if ProcessInfo.processInfo.arguments.contains(CLOnboaringTestsLaunchArgument) == false { + if ProcessInfo.processInfo.arguments.contains(CLOnboardingTestsLaunchArgument) == false { UserDefaults.standard.set(true, forKey: CLShowOnboardingFlow) } @@ -317,7 +317,7 @@ class OnboardingParentViewController: NSViewController { private func shouldStartAtLogin(_ shouldStart: Bool) { // If tests are going on, we don't want to enable/disable launch at login! - if ProcessInfo.processInfo.arguments.contains(CLOnboaringTestsLaunchArgument) { + if ProcessInfo.processInfo.arguments.contains(CLOnboardingTestsLaunchArgument) { return } diff --git a/Clocker/Overall App/Strings.swift b/Clocker/Overall App/Strings.swift index 8a10454..bd3fd71 100644 --- a/Clocker/Overall App/Strings.swift +++ b/Clocker/Overall App/Strings.swift @@ -30,7 +30,7 @@ let CLShowOnboardingFlow = "com.abhishek.showOnboardingFlow" let CLAppDisplayOptions = "com.abhishek.appDisplayOptions" let CLLongStatusBarWarningMessage = "com.abhishek.longStatusBarWarning" let CLUITestingLaunchArgument = "isUITesting" -let CLOnboaringTestsLaunchArgument = "isTestingTheOnboardingFlow" +let CLOnboardingTestsLaunchArgument = "isTestingTheOnboardingFlow" let CLMenubarCompactMode = "com.abhishek.menubarCompactMode" let CLDefaultMenubarMode = "com.abhishek.shouldDefaultToCompactMode" let CLInstallHomeIndicatorObject = "installHomeIndicatorObject"