// A shake in Comms opens the report in Warm: the one question, one field,// the small line, Cancel and Send, and nothing else to choose, at the// default size and the largest (`ReportSheetUI`). Nothing is sent.import XCTestfinalclassChatReportTests: XCTestCase {privatestaticlet largestText = ["-UIPreferredContentSizeCategoryName", "UICTContentSizeCategoryAccessibilityXXXL"]overridefunc setUp() { continueAfterFailure = false XCUIDevice.shared.orientation = .portrait } @MainActor privatefunc walk(_ extra: [String]) {let app = XCUIApplication() app.launchArguments += ["-chat-warm-seed", "YES"] + ReportSheetUI.open + extra app.launch()ReportSheetUI.assertMinimal(app) }// RULE: the report asks only "What looks wrong?", with one field and Send (live once written), the small line, and no other field or choice. @MainActor func testTheReportIsOneQuestion() { walk([]) }// RULE: at the largest text the report is the same one question, field, line, Cancel and Send. @MainActor func testTheReportIsOneQuestionAtTheLargestText() { walk(Self.largestText) }}