Browse Source

Spell check.

pull/113/head
Abhishek 2 years ago
parent
commit
c9ec6bcc69
  1. 2
      Clocker/AppDelegate.swift
  2. 2
      Clocker/ClockerUITests/OnboardingSearchTests.swift
  3. 2
      Clocker/ClockerUITests/OnboardingTests.swift
  4. 4
      Clocker/Onboarding/OnboardingParentViewController.swift
  5. 2
      Clocker/Overall App/Strings.swift

2
Clocker/AppDelegate.swift

@ -91,7 +91,7 @@ open class AppDelegate: NSObject, NSApplicationDelegate {
private var controller: OnboardingController? private var controller: OnboardingController?
private func showOnboardingFlowIfEligible() { private func showOnboardingFlowIfEligible() {
let isTestInProgress = ProcessInfo.processInfo.arguments.contains(CLOnboaringTestsLaunchArgument) let isTestInProgress = ProcessInfo.processInfo.arguments.contains(CLOnboardingTestsLaunchArgument)
let shouldLaunchOnboarding = let shouldLaunchOnboarding =
(DataStore.shared().retrieve(key: CLShowOnboardingFlow) == nil (DataStore.shared().retrieve(key: CLShowOnboardingFlow) == nil
&& DataStore.shared().timezones().isEmpty) && DataStore.shared().timezones().isEmpty)

2
Clocker/ClockerUITests/OnboardingSearchTests.swift

@ -10,7 +10,7 @@ class OnboardingSearchTests: XCTestCase {
continueAfterFailure = false continueAfterFailure = false
app = XCUIApplication() app = XCUIApplication()
app.launchArguments.append(CLOnboaringTestsLaunchArgument) app.launchArguments.append(CLOnboardingTestsLaunchArgument)
app.launch() app.launch()
// Let's go to the Search View // Let's go to the Search View

2
Clocker/ClockerUITests/OnboardingTests.swift

@ -10,7 +10,7 @@ class OnboardingTests: XCTestCase {
override func setUp() { override func setUp() {
continueAfterFailure = false continueAfterFailure = false
app = XCUIApplication() app = XCUIApplication()
app.launchArguments.append(CLOnboaringTestsLaunchArgument) app.launchArguments.append(CLOnboardingTestsLaunchArgument)
app.launch() app.launch()
} }

4
Clocker/Onboarding/OnboardingParentViewController.swift

@ -220,7 +220,7 @@ class OnboardingParentViewController: NSViewController {
view.window?.close() view.window?.close()
if ProcessInfo.processInfo.arguments.contains(CLOnboaringTestsLaunchArgument) == false { if ProcessInfo.processInfo.arguments.contains(CLOnboardingTestsLaunchArgument) == false {
UserDefaults.standard.set(true, forKey: CLShowOnboardingFlow) UserDefaults.standard.set(true, forKey: CLShowOnboardingFlow)
} }
@ -317,7 +317,7 @@ class OnboardingParentViewController: NSViewController {
private func shouldStartAtLogin(_ shouldStart: Bool) { private func shouldStartAtLogin(_ shouldStart: Bool) {
// If tests are going on, we don't want to enable/disable launch at login! // 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 return
} }

2
Clocker/Overall App/Strings.swift

@ -30,7 +30,7 @@ let CLShowOnboardingFlow = "com.abhishek.showOnboardingFlow"
let CLAppDisplayOptions = "com.abhishek.appDisplayOptions" let CLAppDisplayOptions = "com.abhishek.appDisplayOptions"
let CLLongStatusBarWarningMessage = "com.abhishek.longStatusBarWarning" let CLLongStatusBarWarningMessage = "com.abhishek.longStatusBarWarning"
let CLUITestingLaunchArgument = "isUITesting" let CLUITestingLaunchArgument = "isUITesting"
let CLOnboaringTestsLaunchArgument = "isTestingTheOnboardingFlow" let CLOnboardingTestsLaunchArgument = "isTestingTheOnboardingFlow"
let CLMenubarCompactMode = "com.abhishek.menubarCompactMode" let CLMenubarCompactMode = "com.abhishek.menubarCompactMode"
let CLDefaultMenubarMode = "com.abhishek.shouldDefaultToCompactMode" let CLDefaultMenubarMode = "com.abhishek.shouldDefaultToCompactMode"
let CLInstallHomeIndicatorObject = "installHomeIndicatorObject" let CLInstallHomeIndicatorObject = "installHomeIndicatorObject"

Loading…
Cancel
Save