import CottonKit import XCTest @testable import CottonUI /// A project card on the fan's Projects page opens its project (walker pass 4, /// 16 Oct 2026: a tap went home to a Home the fan never showed, so it opened /// nothing). @MainActor final class ProjectCardOpensTests: XCTestCase { /// RULE: on a fan tile a project card opens the project's page in place, on that tile's own stack — never `.projectsSlug`, which Navigator answers by asking the root Home and popping to it, a Home no fan tile shows. func testAProjectCardOnTheFanOpensInPlace() throws { let navigator = Navigator() navigator.tile = "invented-db\u{1F}projects" let page = Route.tableRecord(table: "project", id: "invented-project") navigator.push(page) XCTAssertEqual(navigator.stack, [page], "the project's page stands on the tile's own stack") XCTAssertNil(navigator.projectRequest, "nothing is asked of Home") } }