Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Aug 14, 2021
1 parent 9c81c64 commit f5cbc1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Clocker/ClockerUITests/PanelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class PanelTests: XCTestCase {
func testEnablingUpcomingEventView() {
app.tapMenubarIcon()

let upcomingView = app.buttons["CalendarAccessory"]
let upcomingView = app.collectionViews["UpcomingEventCollectionView"]
let beforeUpcomingEventViewExist = upcomingView.exists

app.buttons["Preferences"].click()
Expand Down Expand Up @@ -101,7 +101,7 @@ class PanelTests: XCTestCase {

app.tapMenubarIcon()

let newUpcomingEventView = app.buttons["CalendarAccessory"]
let newUpcomingEventView = app.collectionViews["UpcomingEventCollectionView"]
let afterUpcomingEventViewExists = newUpcomingEventView.exists

XCTAssertNotEqual(afterUpcomingEventViewExists, beforeUpcomingEventViewExist)
Expand Down
4 changes: 2 additions & 2 deletions Clocker/Preferences/General/PreferencesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PreferencesViewController: ParentViewController {
let dictionary = NSDictionary(contentsOfFile: path),
let apiKey = dictionary["GeocodingKey"] as? String
else {
// assertionFailure("Unable to find the API key")
assertionFailure("Unable to find the API key")
return ""
}
return apiKey
Expand Down Expand Up @@ -259,7 +259,7 @@ class PreferencesViewController: ParentViewController {

private func setupShortcutObserver() {
let defaults = NSUserDefaultsController.shared

recorderControl.setAccessibility("ShortcutControl")
recorderControl.bind(NSBindingName.value,
to: defaults,
withKeyPath: PreferencesConstants.hotKeyPathIdentifier,
Expand Down

0 comments on commit f5cbc1f

Please sign in to comment.