Skip to content

Commit

Permalink
Ignore not working properly tests + refactor OperationsSecondaryTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliyan Germanov committed Nov 24, 2021
1 parent 4c1e993 commit d1ed9a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ class SettingsScreen<A : ComponentActivity>(
composeTestRule.onNodeWithTag("toolbar_back")
.performClick()
}

fun clickStartDateOfMonth() {
composeTestRule.waitForIdle()

composeTestRule.onNodeWithText("Start date of month")
.performScrollTo()
.performClick()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package com.ivy.wallet.compose.scenario

import com.ivy.wallet.compose.IvyComposeTest
import com.ivy.wallet.compose.helpers.*
import com.ivy.wallet.compose.waitSeconds
import dagger.hilt.android.testing.HiltAndroidTest
import org.junit.Ignore
import org.junit.Test

@HiltAndroidTest
Expand Down Expand Up @@ -64,6 +66,7 @@ class OperationsSecondaryTest : IvyComposeTest() {
)
}

@Ignore("performScrollTo() + click doesn't work")
@Test
fun LockApp_semiTest() {
onboardingFlow.quickOnboarding()
Expand All @@ -76,7 +79,7 @@ class OperationsSecondaryTest : IvyComposeTest() {
}

@Test
fun SetName() {
fun SetName_LocalAccount() {
onboardingFlow.quickOnboarding()

homeTab.assertGreeting(
Expand Down Expand Up @@ -104,7 +107,7 @@ class OperationsSecondaryTest : IvyComposeTest() {
}

@Test
fun EditName() {
fun EditName_LocalAccount() {
onboardingFlow.quickOnboarding()

homeTab.assertGreeting(
Expand Down Expand Up @@ -139,5 +142,17 @@ class OperationsSecondaryTest : IvyComposeTest() {
)
}

//TODO: Set start date of month test
@Ignore("performScrollTo() + click doesn't work")
@Test
fun SetStartDateOfMonth_semiTest() {
onboardingFlow.quickOnboarding()

homeMoreMenu.clickOpenCloseArrow()
homeMoreMenu.clickSettings()

//TODO: Fix test scroll + click doesn't work

settingsScreen.clickStartDateOfMonth()
composeTestRule.waitSeconds(5)
}
}

0 comments on commit d1ed9a9

Please sign in to comment.