// A highlight's passage and place are the book's: the reader keeps them as it // makes the row, and no person edits them (4 Nov // 2026). Over the kit's own highlight, as the fixture catalogue carries it. // Every record is invented. import CottonFaces import CottonKit import CottonValues import Foundation import XCTest @testable import CottonUI @MainActor final class HighlightKeptTests: XCTestCase { private static let kept = ["text", "locator", "progress", "page_label", "chapter", "made_at"] private func highlight() throws -> TableDefinition { let fixture = try XCTUnwrap(try DefinitionCatalogue.fixture(in: CottonUIResources.bundle)) return try XCTUnwrap(fixture.tables.first { $0.id == "highlight" }) } private static let marked = TableRecord(id: "h-1", values: [ "book": .text("b-1"), "text": .text("Every map leaves a coast out."), "colour": .text("red"), "locator": .text(#"{"href":"ch1.xhtml"}"#), "progress": .number(12), "page_label": .text("37"), "chapter": .text("The Coast"), "made_at": .text("2026-10-01T10:00:00Z"), ]) }