Align switcher fingerprint tests with display names
This commit is contained in:
parent
514f6b4358
commit
d75e97fb0a
1 changed files with 8 additions and 2 deletions
|
|
@ -663,7 +663,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
XCTAssertNotEqual(base, renamed)
|
||||
}
|
||||
|
||||
func testSwitcherFingerprintIgnoresWorkspaceDisplayNameChurn() {
|
||||
func testSwitcherFingerprintTracksMetadataValuesAtSameCardinality() {
|
||||
let windowID = UUID()
|
||||
let workspaceID = UUID()
|
||||
let base = ContentView.commandPaletteSwitcherFingerprint(
|
||||
|
|
@ -675,6 +675,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
workspaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintWorkspace(
|
||||
id: workspaceID,
|
||||
displayName: "Workspace Alpha",
|
||||
metadata: CommandPaletteSwitcherSearchMetadata(
|
||||
directories: ["/Users/example/dev/cmuxterm"],
|
||||
branches: ["feature/search-speed"],
|
||||
|
|
@ -695,6 +696,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
workspaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintWorkspace(
|
||||
id: workspaceID,
|
||||
displayName: "Workspace Alpha",
|
||||
metadata: CommandPaletteSwitcherSearchMetadata(
|
||||
directories: ["/Users/example/dev/other"],
|
||||
branches: ["feature/search-speed"],
|
||||
|
|
@ -715,6 +717,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
workspaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintWorkspace(
|
||||
id: workspaceID,
|
||||
displayName: "Workspace Beta",
|
||||
metadata: CommandPaletteSwitcherSearchMetadata(
|
||||
directories: ["/Users/example/dev/cmuxterm"],
|
||||
branches: ["feature/search-speed"],
|
||||
|
|
@ -727,8 +730,8 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
]
|
||||
)
|
||||
|
||||
XCTAssertEqual(base, changedDisplayName)
|
||||
XCTAssertNotEqual(base, changedMetadata)
|
||||
XCTAssertNotEqual(base, changedDisplayName)
|
||||
}
|
||||
|
||||
func testSwitcherFingerprintTracksSurfaceValuesAtSameCardinality() {
|
||||
|
|
@ -745,6 +748,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
workspaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintWorkspace(
|
||||
id: workspaceID,
|
||||
displayName: "Workspace Alpha",
|
||||
metadata: CommandPaletteSwitcherSearchMetadata(),
|
||||
surfaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintSurface(
|
||||
|
|
@ -772,6 +776,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
workspaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintWorkspace(
|
||||
id: workspaceID,
|
||||
displayName: "Workspace Alpha",
|
||||
metadata: CommandPaletteSwitcherSearchMetadata(),
|
||||
surfaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintSurface(
|
||||
|
|
@ -799,6 +804,7 @@ final class CommandPaletteSearchEngineTests: XCTestCase {
|
|||
workspaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintWorkspace(
|
||||
id: workspaceID,
|
||||
displayName: "Workspace Alpha",
|
||||
metadata: CommandPaletteSwitcherSearchMetadata(),
|
||||
surfaces: [
|
||||
ContentView.CommandPaletteSwitcherFingerprintSurface(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue