package com.cottondb.storyimport android.app.Applicationimport androidx.compose.ui.test.assertIsDisplayedimport androidx.compose.ui.test.junit4.createComposeRuleimport androidx.compose.ui.test.onNodeWithContentDescriptionimport androidx.compose.ui.test.performClickimport com.cottondb.story.ink.NoScriptsTitleimport org.junit.Assert.assertEqualsimport org.junit.Ruleimport org.junit.Testimport org.junit.runner.RunWithimport org.robolectric.RobolectricTestRunnerimport org.robolectric.annotation.Config/** * A Story with no script yet reaches Settings from its title row. On the emulator (21 Nov 2026) a fresh Story, and one * cleared to sign in again, offered only New script and Bring in a script: Settings (and with it Sign in) stood behind * a script's More. */@RunWith(RobolectricTestRunner::class)@Config(sdk = [35], qualifiers = "w400dp-h800dp-mdpi", application = Application::class)classStoryNoScriptsSettingsTest { @get:Ruleval compose = createComposeRule() @Test fun settings_stands_beside_the_title_before_a_first_script() {var opened = 0 compose.setContent { NoScriptsTitle("Story", "Settings") { opened++ } } compose.onNodeWithContentDescription("Settings").assertIsDisplayed().performClick() compose.runOnIdle { assertEquals(1, opened) } }}