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 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: Added Paparazzi tests for the report module (#2923) * feat: Added Paparazzi tests for the search module (#2923) * feat: Added Paparazzi tests for the settings module (#2923) * feat: Added Paparazzi tests for the transaction module (#2923) * fix: removed paparrazi tests for settings screen * fix: Fixed paprazzi test for home module
- Loading branch information
Showing
22 changed files
with
183 additions
and
23 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
4 changes: 2 additions & 2 deletions
4
.../snapshots/images/com.ivy.home_HomePaparazziTest_snapshot Home Screen[Dark].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...snapshots/images/com.ivy.home_HomePaparazziTest_snapshot Home Screen[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
30 changes: 30 additions & 0 deletions
30
screen/reports/src/test/java/com/ivy/report/ReportPaparazziTest.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.report | ||
|
||
import com.google.testing.junit.testparameterinjector.TestParameter | ||
import com.google.testing.junit.testparameterinjector.TestParameterInjector | ||
import com.ivy.reports.ReportNoFilterUiTest | ||
import com.ivy.reports.ReportUiTest | ||
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 ReportPaparazziTest( | ||
@TestParameter | ||
private val theme: PaparazziTheme, | ||
) : PaparazziScreenshotTest() { | ||
@Test | ||
fun `snapshot Report Screen`() { | ||
snapshot(theme) { | ||
ReportUiTest(theme == PaparazziTheme.Dark) | ||
} | ||
} | ||
|
||
@Test | ||
fun `snapshot Report Screen no filter`() { | ||
snapshot(theme) { | ||
ReportNoFilterUiTest(theme == PaparazziTheme.Dark) | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/com.ivy.report_ReportPaparazziTest_snapshot Report Screen no filter[Dark].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
.../com.ivy.report_ReportPaparazziTest_snapshot Report Screen no filter[Light].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
...hots/images/com.ivy.report_ReportPaparazziTest_snapshot Report Screen[Dark].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
...ots/images/com.ivy.report_ReportPaparazziTest_snapshot Report Screen[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
21 changes: 21 additions & 0 deletions
21
screen/search/src/test/java/com/ivy/search/SearchPaparazziTest.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,21 @@ | ||
package com.ivy.search | ||
|
||
import com.google.testing.junit.testparameterinjector.TestParameter | ||
import com.google.testing.junit.testparameterinjector.TestParameterInjector | ||
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 SearchPaparazziTest( | ||
@TestParameter | ||
private val theme: PaparazziTheme, | ||
) : PaparazziScreenshotTest() { | ||
@Test | ||
fun `snapshot Search Screen`() { | ||
snapshot(theme) { | ||
SearchUiTest(theme == PaparazziTheme.Dark) | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...hots/images/com.ivy.search_SearchPaparazziTest_snapshot Search Screen[Dark].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
...ots/images/com.ivy.search_SearchPaparazziTest_snapshot Search Screen[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
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
21 changes: 21 additions & 0 deletions
21
screen/transactions/src/test/java/com/ivy/transactions/TransactionsPaparazziTest.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,21 @@ | ||
package com.ivy.transactions | ||
|
||
import com.google.testing.junit.testparameterinjector.TestParameter | ||
import com.google.testing.junit.testparameterinjector.TestParameterInjector | ||
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 TransactionsPaparazziTest( | ||
@TestParameter | ||
private val theme: PaparazziTheme, | ||
) : PaparazziScreenshotTest() { | ||
@Test | ||
fun `snapshot Transactions Screen`() { | ||
snapshot(theme) { | ||
TransactionsUiTest(theme == PaparazziTheme.Dark) | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...y.transactions_TransactionsPaparazziTest_snapshot Transactions Screen[Dark].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
....transactions_TransactionsPaparazziTest_snapshot Transactions Screen[Light].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.