From 38d4414dec167eb7c969f8868e9ea5e047d43c64 Mon Sep 17 00:00:00 2001 From: Gergely Hegedus Date: Thu, 29 Sep 2022 15:01:35 +0300 Subject: [PATCH] PR#128 Fix typo in Compose Test setup --- .../org/fnives/test/showcase/ui/AuthComposeInstrumentedTest.kt | 2 +- .../showcase/hilt/ui/compose/AuthComposeInstrumentedTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/fnives/test/showcase/ui/AuthComposeInstrumentedTest.kt b/app/src/androidTest/java/org/fnives/test/showcase/ui/AuthComposeInstrumentedTest.kt index 19c259c..2d11ca2 100644 --- a/app/src/androidTest/java/org/fnives/test/showcase/ui/AuthComposeInstrumentedTest.kt +++ b/app/src/androidTest/java/org/fnives/test/showcase/ui/AuthComposeInstrumentedTest.kt @@ -115,7 +115,7 @@ class AuthComposeInstrumentedTest : KoinTest { @Test fun invalidCredentialsGivenShowsProperErrorMessage() { mockServerScenarioSetup.setScenario( - AuthScenario.InvalidCredentials(password = "alma", username = "banan") + AuthScenario.InvalidCredentials(username = "alma", password = "banan") ) composeTestRule.mainClock.advanceTimeBy(SPLASH_DELAY) diff --git a/hilt/hilt-app/src/androidTest/java/org/fnives/test/showcase/hilt/ui/compose/AuthComposeInstrumentedTest.kt b/hilt/hilt-app/src/androidTest/java/org/fnives/test/showcase/hilt/ui/compose/AuthComposeInstrumentedTest.kt index d0f2e03..ba5685f 100644 --- a/hilt/hilt-app/src/androidTest/java/org/fnives/test/showcase/hilt/ui/compose/AuthComposeInstrumentedTest.kt +++ b/hilt/hilt-app/src/androidTest/java/org/fnives/test/showcase/hilt/ui/compose/AuthComposeInstrumentedTest.kt @@ -131,7 +131,7 @@ class AuthComposeInstrumentedTest { @Test fun invalidCredentialsGivenShowsProperErrorMessage() { mockServerScenarioSetup.setScenario( - AuthScenario.InvalidCredentials(password = "alma", username = "banan") + AuthScenario.InvalidCredentials(username = "alma", password = "banan") ) composeTestRule.mainClock.advanceTimeBy(SPLASH_DELAY)