This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38a9ca0
commit bbcb263
Showing
11 changed files
with
132 additions
and
76 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
screen/loans/src/main/java/com/ivy/loans/loan/LoanScreenMode.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,6 @@ | ||
package com.ivy.loans.loan | ||
|
||
sealed interface LoanScreenMode { | ||
data object TabularMode : LoanScreenMode | ||
data object NonTabularMode : LoanScreenMode | ||
} |
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
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
30 changes: 30 additions & 0 deletions
30
screen/loans/src/test/java/com/ivy/loans/LoanScreenPaparazziTest.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,30 @@ | ||
package com.ivy.loans | ||
|
||
import com.google.testing.junit.testparameterinjector.TestParameter | ||
import com.google.testing.junit.testparameterinjector.TestParameterInjector | ||
import com.ivy.loans.loan.LoanScreenNonTabularModeUiTest | ||
import com.ivy.loans.loan.LoanScreenTabularModeUiTest | ||
import com.ivy.ui.testing.PaparazziScreenshotTest | ||
import com.ivy.ui.testing.PaparazziTheme | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(TestParameterInjector::class) | ||
class LoanScreenPaparazziTest( | ||
@TestParameter | ||
private val theme: PaparazziTheme, | ||
) : PaparazziScreenshotTest() { | ||
@Test | ||
fun `snapshot loanScreen tabular composable`() { | ||
snapshot(theme) { | ||
LoanScreenTabularModeUiTest(theme == PaparazziTheme.Dark) | ||
} | ||
} | ||
|
||
@Test | ||
fun `snapshot loanScreen non tabular composable`() { | ||
snapshot(theme) { | ||
LoanScreenNonTabularModeUiTest(theme == PaparazziTheme.Dark) | ||
} | ||
} | ||
} |
Binary file added
BIN
+37.7 KB
...ns_LoanScreenPaparazziTest_snapshot loanScreen non tabular composable[Dark].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.5 KB
...s_LoanScreenPaparazziTest_snapshot loanScreen non tabular composable[Light].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.7 KB
....loans_LoanScreenPaparazziTest_snapshot loanScreen tabular composable[Dark].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.7 KB
...loans_LoanScreenPaparazziTest_snapshot loanScreen tabular composable[Light].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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