From b66258806e1a6f9204c322d7bb2dbdb3fc464a17 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Sun, 26 Apr 2026 13:52:30 +0200 Subject: [PATCH] test: only change themes in theme tests --- macos/GhosttyUITests/GhosttyCommandPaletteTests.swift | 1 - macos/GhosttyUITests/GhosttyCustomConfigCase.swift | 4 ---- macos/GhosttyUITests/GhosttyMouseStateTests.swift | 2 -- macos/GhosttyUITests/GhosttyThemeTests.swift | 4 ++++ macos/GhosttyUITests/GhosttyWindowPositionUITests.swift | 2 -- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/macos/GhosttyUITests/GhosttyCommandPaletteTests.swift b/macos/GhosttyUITests/GhosttyCommandPaletteTests.swift index 428682b4f..8ebdaf6f0 100644 --- a/macos/GhosttyUITests/GhosttyCommandPaletteTests.swift +++ b/macos/GhosttyUITests/GhosttyCommandPaletteTests.swift @@ -8,7 +8,6 @@ import XCTest final class GhosttyCommandPaletteTests: GhosttyCustomConfigCase { - override static var runsForEachTargetApplicationUIConfiguration: Bool { false } @MainActor func testDismissingCommandPalette() async throws { let app = try ghosttyApplication() app.activate() diff --git a/macos/GhosttyUITests/GhosttyCustomConfigCase.swift b/macos/GhosttyUITests/GhosttyCustomConfigCase.swift index ca3f56677..645848095 100644 --- a/macos/GhosttyUITests/GhosttyCustomConfigCase.swift +++ b/macos/GhosttyUITests/GhosttyCustomConfigCase.swift @@ -23,10 +23,6 @@ class GhosttyCustomConfigCase: XCTestCase { } } - override class var runsForEachTargetApplicationUIConfiguration: Bool { - true - } - static let defaultsSuiteName: String = "GHOSTTY_UI_TESTS" var configFile: URL? diff --git a/macos/GhosttyUITests/GhosttyMouseStateTests.swift b/macos/GhosttyUITests/GhosttyMouseStateTests.swift index b8f202617..68317f076 100644 --- a/macos/GhosttyUITests/GhosttyMouseStateTests.swift +++ b/macos/GhosttyUITests/GhosttyMouseStateTests.swift @@ -8,8 +8,6 @@ import XCTest final class GhosttyMouseStateTests: GhosttyCustomConfigCase { - override static var runsForEachTargetApplicationUIConfiguration: Bool { false } - // https://github.com/ghostty-org/ghostty/pull/11276 @MainActor func testSelectionFocusChange() async throws { let app = XCUIApplication() diff --git a/macos/GhosttyUITests/GhosttyThemeTests.swift b/macos/GhosttyUITests/GhosttyThemeTests.swift index f8f5286fb..eb5b78a09 100644 --- a/macos/GhosttyUITests/GhosttyThemeTests.swift +++ b/macos/GhosttyUITests/GhosttyThemeTests.swift @@ -9,6 +9,10 @@ import AppKit import XCTest final class GhosttyThemeTests: GhosttyCustomConfigCase { + override static var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + let windowTitle = "GhosttyThemeTests" private func assertTitlebarAppearance( _ appearance: XCUIDevice.Appearance, diff --git a/macos/GhosttyUITests/GhosttyWindowPositionUITests.swift b/macos/GhosttyUITests/GhosttyWindowPositionUITests.swift index 399c2531a..b5739edf6 100644 --- a/macos/GhosttyUITests/GhosttyWindowPositionUITests.swift +++ b/macos/GhosttyUITests/GhosttyWindowPositionUITests.swift @@ -8,8 +8,6 @@ import XCTest final class GhosttyWindowPositionUITests: GhosttyCustomConfigCase { - override static var runsForEachTargetApplicationUIConfiguration: Bool { false } - // MARK: - Cascading @MainActor func testWindowCascading() async throws {