Add waitForIdle to NavigationTest setup

Change-Id: Iedb71804340d20f7a84576408fbe5beccfe718ac
refactor/remove_data_test_module
Miłosz Moczkowski 2 years ago
parent decd70e967
commit b063f9145f

@ -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 {

Loading…
Cancel
Save