import XCTest@testable importCottonUIfinalclassBrowserOpeningTests: XCTestCase {/// RULE: On the Mac a sign-in address whose default browser is Chrome opens as a new Chrome instance's argument, so Chrome's singleton lands it in the person's visible Chrome — never the browser broker's headless one.func testAChromeDefaultOpensAsANewInstanceAndAnyOtherTheOrdinaryWay() {let chrome = URL(fileURLWithPath: "/Applications/Google Chrome.app") XCTAssertEqual(BrowserOpening.plan(defaultBrowser: chrome, bundleIdentifier: "com.google.Chrome"), .newInstance(app: chrome))let safari = URL(fileURLWithPath: "/Applications/Safari.app") XCTAssertEqual(BrowserOpening.plan(defaultBrowser: safari, bundleIdentifier: "com.apple.Safari"), .ordinary) XCTAssertEqual(BrowserOpening.plan(defaultBrowser: nil, bundleIdentifier: nil), .ordinary) }}