package com.cottondb.days 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 Days opens "What looks wrong?" in Days's own sheet (SheetHost, with its grip), 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 DaysReportSheetTest { @get:Rule val compose = createComposeRule() @Test fun it_asks_only_what_looks_wrong_in_days_own_sheet() { ReportSheetCheck.check(compose, look = { com.cottondb.days.pen.DaysCardLook(com.cottondb.days.pen.penFonts(androidx.compose.ui.platform.LocalContext.current)) }, frame = "report-sheet-grip") } /** 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.days.pen.DaysCardLook(com.cottondb.days.pen.penFonts(androidx.compose.ui.platform.LocalContext.current)) }) } }