Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Oct 17, 2023
1 parent fedb526 commit 7ed7e94
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Examples/SyncUps/SyncUps/AppFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ struct AppView: View {
}

extension URL {
static let syncUps = Self.documentsDirectory.appending(component: "syncUps.json")
static let syncUps = Self.documentsDirectory.appending(component: "sync-ups.json")
}
2 changes: 1 addition & 1 deletion Examples/SyncUps/SyncUps/SyncUpDetail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ struct SyncUpDetailView: View {
.cornerRadius(4)
}
} header: {
Text("SyncUp Info")
Text("Sync-up Info")
}

if !viewStore.syncUp.meetings.isEmpty {
Expand Down
2 changes: 1 addition & 1 deletion Examples/SyncUps/SyncUps/SyncUpForm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct SyncUpFormView: View {
}
ThemePicker(selection: viewStore.$syncUp.theme)
} header: {
Text("SyncUp Info")
Text("Sync-up Info")
}
Section {
ForEach(viewStore.$syncUp.attendees) { $attendee in
Expand Down
4 changes: 2 additions & 2 deletions Examples/SyncUps/SyncUps/SyncUpsList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct SyncUpsListView: View {
Image(systemName: "plus")
}
}
.navigationTitle("Daily SyncUps")
.navigationTitle("Daily Sync-ups")
.alert(
store: self.store.scope(state: \.$destination, action: { .destination($0) }),
state: /SyncUpsList.Destination.State.alert,
Expand All @@ -132,7 +132,7 @@ struct SyncUpsListView: View {
) { store in
NavigationStack {
SyncUpFormView(store: store)
.navigationTitle("New SyncUp")
.navigationTitle("New sync-up")
.toolbar {
ToolbarItem(placement: .cancellationAction) {
Button("Dismiss") {
Expand Down
8 changes: 4 additions & 4 deletions Examples/SyncUps/SyncUpsUITests/SyncUpsUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ final class SyncUpsUITests: XCTestCase {
}

// This test demonstrates the simple flow of tapping the "Add" button, filling in some fields in
// the form, and then adding the syncUp to the list. It's a very simple test, but it takes
// the form, and then adding the sync-up to the list. It's a very simple test, but it takes
// approximately 10 seconds to run, and it depends on a lot of internal implementation details to
// get right, such as tapping a button with the literal label "Add".
//
// This test is also written in the simpler, "unit test" style in SyncUpsListTests.swift, where
// it takes 0.025 seconds (400 times faster) and it even tests more. It further confirms that when
// the syncUp is added to the list its data will be persisted to disk so that it will be
// the sync-up is added to the list its data will be persisted to disk so that it will be
// available on next launch.
func testAdd() throws {
app.launch()
app.navigationBars["Daily SyncUps"].buttons["Add"].tap()
app.navigationBars["Daily Sync-ups"].buttons["Add"].tap()

let collectionViews = app.collectionViews
let titleTextField = collectionViews.textFields["Title"]
Expand All @@ -36,7 +36,7 @@ final class SyncUpsUITests: XCTestCase {
collectionViews.buttons["New attendee"].tap()
app.typeText("Blob Jr.")

app.navigationBars["New SyncUp"].buttons["Add"].tap()
app.navigationBars["New sync-up"].buttons["Add"].tap()

XCTAssertEqual(collectionViews.staticTexts["Engineering"].exists, true)
}
Expand Down

0 comments on commit 7ed7e94

Please sign in to comment.