-
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 DeleteAccountLayout
- Loading branch information
Showing
13 changed files
with
94 additions
and
10 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
...arazziTest_DeleteAccountLayout() - Deleting[Nexus 5,NIGHT,NO_ACCESSIBILITY].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
...arazziTest_DeleteAccountLayout() - Deleting[Nexus 5,NOTNIGHT,ACCESSIBILITY].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
...zziTest_DeleteAccountLayout() - Deleting[Nexus 5,NOTNIGHT,NO_ACCESSIBILITY].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
...ziTest_DeleteAccountLayout() - Deleting[Pixel 6 Pro,NIGHT,NO_ACCESSIBILITY].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
...est_DeleteAccountLayout() - Deleting[Pixel 6 Pro,NOTNIGHT,NO_ACCESSIBILITY].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
...parazziTest_DeleteAccountLayout() - Display[Nexus 5,NIGHT,NO_ACCESSIBILITY].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
...parazziTest_DeleteAccountLayout() - Display[Nexus 5,NOTNIGHT,ACCESSIBILITY].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
...azziTest_DeleteAccountLayout() - Display[Nexus 5,NOTNIGHT,NO_ACCESSIBILITY].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
...zziTest_DeleteAccountLayout() - Display[Pixel 6 Pro,NIGHT,NO_ACCESSIBILITY].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
...Test_DeleteAccountLayout() - Display[Pixel 6 Pro,NOTNIGHT,NO_ACCESSIBILITY].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
36 changes: 36 additions & 0 deletions
36
...c/testDebug/kotlin/org/cru/godtools/ui/account/delete/DeleteAccountLayoutPaparazziTest.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,36 @@ | ||
package org.cru.godtools.ui.account.delete | ||
|
||
import app.cash.paparazzi.DeviceConfig | ||
import com.android.resources.NightMode | ||
import com.google.testing.junit.testparameterinjector.TestParameter | ||
import com.google.testing.junit.testparameterinjector.TestParameterInjector | ||
import com.slack.circuit.test.TestEventSink | ||
import kotlin.test.Ignore | ||
import kotlin.test.Test | ||
import org.cru.godtools.ui.BasePaparazziTest | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(TestParameterInjector::class) | ||
class DeleteAccountLayoutPaparazziTest( | ||
@TestParameter(valuesProvider = DeviceConfigProvider::class) deviceConfig: DeviceConfig, | ||
@TestParameter nightMode: NightMode, | ||
@TestParameter accessibilityMode: AccessibilityMode, | ||
) : BasePaparazziTest(deviceConfig = deviceConfig, nightMode = nightMode, accessibilityMode = accessibilityMode) { | ||
private val events = TestEventSink<DeleteAccountScreen.Event>() | ||
|
||
@Test | ||
fun `DeleteAccountLayout() - Display`() { | ||
snapshot { DeleteAccountLayout(DeleteAccountScreen.State.Display(events)) } | ||
} | ||
|
||
@Test | ||
fun `DeleteAccountLayout() - Deleting`() { | ||
snapshot { DeleteAccountLayout(DeleteAccountScreen.State.Deleting(events)) } | ||
} | ||
|
||
@Test | ||
@Ignore("TODO: Disabled due to https://github.com/cashapp/paparazzi/issues/1025") | ||
fun `DeleteAccountLayout() - Error`() { | ||
snapshot { DeleteAccountLayout(DeleteAccountScreen.State.Error(events)) } | ||
} | ||
} |