|
|
@ -37,6 +37,7 @@ import com.google.samples.apps.nowinandroid.core.data.repository.TopicsRepositor
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.UserDataRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.UserDataRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.UserNewsResourceRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.UserNewsResourceRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.util.NetworkMonitor
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.util.NetworkMonitor
|
|
|
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.designsystem.theme.NiaTheme
|
|
|
|
import com.google.samples.apps.nowinandroid.core.testing.util.DefaultRoborazziOptions
|
|
|
|
import com.google.samples.apps.nowinandroid.core.testing.util.DefaultRoborazziOptions
|
|
|
|
import com.google.samples.apps.nowinandroid.uitesthiltmanifest.HiltComponentActivity
|
|
|
|
import com.google.samples.apps.nowinandroid.uitesthiltmanifest.HiltComponentActivity
|
|
|
|
import dagger.hilt.android.testing.BindValue
|
|
|
|
import dagger.hilt.android.testing.BindValue
|
|
|
@ -140,6 +141,7 @@ class NiaAppScreenSizesScreenshotTests {
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
TestHarness(size = DpSize(width, height)) {
|
|
|
|
TestHarness(size = DpSize(width, height)) {
|
|
|
|
BoxWithConstraints {
|
|
|
|
BoxWithConstraints {
|
|
|
|
|
|
|
|
NiaTheme {
|
|
|
|
NiaApp(
|
|
|
|
NiaApp(
|
|
|
|
windowSizeClass = WindowSizeClass.calculateFromSize(
|
|
|
|
windowSizeClass = WindowSizeClass.calculateFromSize(
|
|
|
|
DpSize(maxWidth, maxHeight),
|
|
|
|
DpSize(maxWidth, maxHeight),
|
|
|
@ -151,6 +153,7 @@ class NiaAppScreenSizesScreenshotTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
composeTestRule.onRoot()
|
|
|
|
composeTestRule.onRoot()
|
|
|
|
.captureRoboImage(
|
|
|
|
.captureRoboImage(
|
|
|
|