Add route detail photo tile loaders
This commit is contained in:
@@ -73,6 +73,18 @@ class DriverUiRulesTest {
|
||||
assertFalse(shouldShowPhotoPreviewErrorState(hasPhoto = false, isError = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun keepsPhotoTileFeedbackVisibleUntilThumbnailLoadsOrFails() {
|
||||
assertTrue(shouldShowPhotoTileLoadingState(hasPhoto = true, isLoading = true, isError = false))
|
||||
assertFalse(shouldShowPhotoTileLoadingState(hasPhoto = true, isLoading = false, isError = false))
|
||||
assertFalse(shouldShowPhotoTileLoadingState(hasPhoto = true, isLoading = true, isError = true))
|
||||
assertFalse(shouldShowPhotoTileLoadingState(hasPhoto = false, isLoading = true, isError = false))
|
||||
|
||||
assertTrue(shouldShowPhotoTileErrorState(hasPhoto = true, isError = true))
|
||||
assertFalse(shouldShowPhotoTileErrorState(hasPhoto = true, isError = false))
|
||||
assertFalse(shouldShowPhotoTileErrorState(hasPhoto = false, isError = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun usesShorterChromeOnCompactScreens() {
|
||||
assertEquals(118, authBrandBannerHeightDp(600))
|
||||
|
||||
Reference in New Issue
Block a user