|
|
@ -36,6 +36,7 @@ import com.google.samples.apps.nowinandroid.R
|
|
|
|
import dagger.hilt.android.testing.BindValue
|
|
|
|
import dagger.hilt.android.testing.BindValue
|
|
|
|
import dagger.hilt.android.testing.HiltAndroidRule
|
|
|
|
import dagger.hilt.android.testing.HiltAndroidRule
|
|
|
|
import dagger.hilt.android.testing.HiltAndroidTest
|
|
|
|
import dagger.hilt.android.testing.HiltAndroidTest
|
|
|
|
|
|
|
|
import org.junit.Before
|
|
|
|
import org.junit.Rule
|
|
|
|
import org.junit.Rule
|
|
|
|
import org.junit.Test
|
|
|
|
import org.junit.Test
|
|
|
|
import org.junit.rules.TemporaryFolder
|
|
|
|
import org.junit.rules.TemporaryFolder
|
|
|
@ -85,6 +86,9 @@ class NavigationTest {
|
|
|
|
private val brand by composeTestRule.stringResource(SettingsR.string.brand_android)
|
|
|
|
private val brand by composeTestRule.stringResource(SettingsR.string.brand_android)
|
|
|
|
private val ok by composeTestRule.stringResource(SettingsR.string.dismiss_dialog_button_text)
|
|
|
|
private val ok by composeTestRule.stringResource(SettingsR.string.dismiss_dialog_button_text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Before
|
|
|
|
|
|
|
|
fun setup() = composeTestRule.waitForIdle()
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun firstScreen_isForYou() {
|
|
|
|
fun firstScreen_isForYou() {
|
|
|
|
composeTestRule.apply {
|
|
|
|
composeTestRule.apply {
|
|
|
|