Cotton code
18 lines · 846 B · SwiftRaw
// A shake in Story opens the report in Ink: 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 StoryReportTests: StoryUITestCase {    @MainActor private func walk(_ extra: [String]) {        let app = StoryUI.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(StoryUI.largestText) }}