-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Paparazzi tests for the LanguageDownloadProgressIndicator
- Loading branch information
Showing
7 changed files
with
76 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...icatorPaparazziTest_LanguageDownloadProgressIndicator() - Download complete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...torPaparazziTest_LanguageDownloadProgressIndicator() - Download in progress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...catorPaparazziTest_LanguageDownloadProgressIndicator() - Nothing downloaded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions
38
.../cru/godtools/ui/languages/downloadable/LanguageDownloadProgressIndicatorPaparazziTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.cru.godtools.ui.languages.downloadable | ||
|
||
import app.cash.paparazzi.Paparazzi | ||
import kotlin.test.Test | ||
import org.cru.godtools.base.ui.theme.GodToolsTheme | ||
import org.junit.Rule | ||
|
||
class LanguageDownloadProgressIndicatorPaparazziTest { | ||
@get:Rule | ||
val paparazzi = Paparazzi() | ||
|
||
@Test | ||
fun `LanguageDownloadProgressIndicator() - Nothing downloaded`() { | ||
paparazzi.snapshot { | ||
GodToolsTheme(disableDagger = true) { | ||
LanguageDownloadProgressIndicator(isPinned = true, downloaded = 0, total = 5) | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun `LanguageDownloadProgressIndicator() - Download in progress`() { | ||
paparazzi.snapshot { | ||
GodToolsTheme(disableDagger = true) { | ||
LanguageDownloadProgressIndicator(isPinned = true, downloaded = 2, total = 5) | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun `LanguageDownloadProgressIndicator() - Download complete`() { | ||
paparazzi.snapshot { | ||
GodToolsTheme(disableDagger = true) { | ||
LanguageDownloadProgressIndicator(isPinned = true, downloaded = 5, total = 5) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters