From c4e2d0c63cb22d184141c990bb3733964e265ef8 Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Tue, 10 Mar 2026 21:41:01 -0700 Subject: [PATCH] Add failing Finder drag regression test --- cmuxTests/CmuxWebViewKeyEquivalentTests.swift | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/cmuxTests/CmuxWebViewKeyEquivalentTests.swift b/cmuxTests/CmuxWebViewKeyEquivalentTests.swift index 409a06d1..786368c2 100644 --- a/cmuxTests/CmuxWebViewKeyEquivalentTests.swift +++ b/cmuxTests/CmuxWebViewKeyEquivalentTests.swift @@ -9388,6 +9388,29 @@ final class CmuxWebViewDragRoutingTests: XCTestCase { } } +#if compiler(>=6.2) +@MainActor +final class InternalTabDragConfigurationTests: XCTestCase { + func testDisablesExternalOperationsForInternalTabDrags() throws { + guard #available(macOS 26.0, *) else { + throw XCTSkip("Requires macOS 26 drag configuration APIs") + } + + let configuration = InternalTabDragConfigurationProvider.value + + XCTAssertFalse(configuration.operationsWithinApp.allowCopy) + XCTAssertTrue(configuration.operationsWithinApp.allowMove) + XCTAssertFalse(configuration.operationsWithinApp.allowDelete) + XCTAssertFalse(configuration.operationsWithinApp.allowAlias) + + XCTAssertFalse(configuration.operationsOutsideApp.allowCopy) + XCTAssertFalse(configuration.operationsOutsideApp.allowMove) + XCTAssertFalse(configuration.operationsOutsideApp.allowDelete) + XCTAssertFalse(configuration.operationsOutsideApp.allowAlias) + } +} +#endif + @MainActor final class BrowserPaneDropRoutingTests: XCTestCase { func testVerticalZonesFollowAppKitCoordinates() {