package com.cottondb.daysimport android.app.Applicationimport androidx.compose.ui.test.assertIsEnabledimport androidx.compose.ui.test.hasClickActionimport androidx.compose.ui.test.hasTextimport androidx.compose.ui.test.junit4.createComposeRuleimport androidx.compose.ui.test.performClickimport androidx.compose.ui.text.font.FontFamilyimport com.cottondb.days.pen.DaysCardLookimport com.cottondb.days.pen.PenTypeimport org.junit.Assert.assertEqualsimport org.junit.Ruleimport org.junit.Testimport org.junit.runner.RunWithimport org.robolectric.RobolectricTestRunnerimport org.robolectric.annotation.Config/** * The shell's yes-or-no cards over Days (a reason before the phone's ask, a question before an act): Not now closes * the card. It was passed as disabled, drawn greyed and dead, as Story's was (first-run walk, 25 Nov 2026). */@RunWith(RobolectricTestRunner::class)@Config(sdk = [35], qualifiers = "w411dp-h891dp-mdpi", application = Application::class)classDaysConfirmCardTest { @get:Ruleval compose = createComposeRule() @Test fun not_now_closes_the_card() {var dismissed = 0var went = 0 compose.setContent {DaysCardLook(PenType(FontFamily.Monospace)).Confirm("Days reminds you with a notification.", "Continue", "days-ask-go-on", onYes = { went++ }, onDismiss = { dismissed++ }, no = "Not now") } compose.onNode(hasText("Not now") and hasClickAction(), useUnmergedTree = true).assertIsEnabled().performClick() compose.runOnIdle { assertEquals(1, dismissed); assertEquals(0, went) } }}