Cotton code
18 lines · 855 B · SwiftRaw
// A shake in Words opens the report in Words' theme: 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 XCTestfinal class NotesReportTests: NotesUITestCase {    @MainActor private func walk(_ extra: [String]) {        let app = NotesUI.launch(ReportSheetUI.open + extra)        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(NotesUI.largestText) }}