package com.cottondb.notes import android.app.Application import androidx.compose.ui.test.junit4.createComposeRule import com.cottondb.report.ReportSheetCheck import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.annotation.Config /** * A shake in Words opens "What looks wrong?" in Words's own sheet (NotesSheet, its veil named), asking only the question, the field * and Send, with the one line (OLD-LOOK item 2, 22 Nov 2026). Before, it was the shell's card: "Report a problem", a * picture of the screen, Cancel and Send, centred over a veil. */ @RunWith(RobolectricTestRunner::class) @Config(sdk = [35], qualifiers = "w400dp-h800dp-mdpi", application = Application::class) class WordsReportSheetTest { @get:Rule val compose = createComposeRule() @Test fun it_asks_only_what_looks_wrong_in_words_own_sheet() { ReportSheetCheck.check(compose, look = { com.cottondb.notes.NotesCardLook(com.cottondb.notes.NotesLook.standing(androidx.compose.ui.platform.LocalContext.current, false), androidx.compose.ui.text.font.FontFamily.SansSerif, androidx.compose.ui.text.font.FontFamily.Monospace) }, frame = "report-sheet-outside") } /** At the largest text with little room (the keyboard up), Send is in sight, never under the keyboard. */ @Config(qualifiers = "w400dp-h240dp-mdpi") @Test fun send_stands_in_sight_at_the_largest_text() { ReportSheetCheck.sendInSight(compose, look = { com.cottondb.notes.NotesCardLook(com.cottondb.notes.NotesLook.standing(androidx.compose.ui.platform.LocalContext.current, false), androidx.compose.ui.text.font.FontFamily.SansSerif, androidx.compose.ui.text.font.FontFamily.Monospace) }) } }