Skip to content

Commit

Permalink
Merge pull request #110 from yml-org/bug/CM-1489
Browse files Browse the repository at this point in the history
[bug/CM-1489]: Fixed the UI test case failure.
  • Loading branch information
dkk009 authored Jun 26, 2023
2 parents 68c6fed + f26d9e5 commit 9d13d10
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@ package co.yml.charts.barchart

import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.test.*
import androidx.compose.ui.test.assertCountEquals
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasAnyChild
import androidx.compose.ui.test.hasClickAction
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onChildren
import androidx.compose.ui.test.onFirst
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.onSiblings
import androidx.compose.ui.test.performClick
import androidx.compose.ui.unit.dp
import co.yml.charts.axis.AxisData
import co.yml.charts.common.extensions.getMaxElementInYAxis
import co.yml.charts.common.model.Point
import co.yml.charts.ui.barchart.StackedBarChart
import co.yml.charts.ui.barchart.models.*
import co.yml.charts.ui.barchart.models.BarData
import co.yml.charts.ui.barchart.models.BarPlotData
import co.yml.charts.ui.barchart.models.BarStyle
import co.yml.charts.ui.barchart.models.GroupBar
import co.yml.charts.ui.barchart.models.GroupBarChartData
import co.yml.charts.ui.barchart.models.SelectionHighlightData
import org.junit.Rule
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal fun Project.configureComposeApplication(
add("implementation", libs.findBundle("compose").get())
add("androidTestImplementation", platform(bom))
add("androidTestImplementation", libs.findLibrary("androidx.compose.ui.test").get())

add("debugImplementation",libs.findLibrary("androidx.compose.ui-manifest-test").get())
}
}
}
13 changes: 6 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
#Project
#kotlin
kotlinVersion = "1.8.20"
kotlinxCoroutines = "1.6.4"
kotlinxSerializationJson = "1.5.0"
#gradle
androidGradlePlugin = "8.0.2"

#Modules
#androidx
androidxComposeBom = "2023.04.00"
androidxComposeBom = "2023.05.01"
androidxActivityCompose = "1.7.0"
androidxAppCompat = "1.6.1"
androidxComposeCompiler = "1.4.6"
Expand All @@ -27,14 +26,14 @@ androidxCrypto = "1.1.0-alpha04"
androidxDatastore = "1.0.0"

#compose
compose_ui = "1.4.2"
compose_ui_testing = "1.4.0-beta01"
compose_ui = "1.4.3"
compose_ui_testing = "1.4.3"
compose_constraint_layout = "1.1.0-alpha05"
#ktx
core_ktx = "1.9.0"
#coroutine
coroutine = "1.7.0-RC"
turbine = "0.12.1"
coroutine = "1.7.1"
turbine = "1.0.0"
#android test
junit4 = "4.13.2"
android_junit = "1.1.5"
Expand Down Expand Up @@ -68,7 +67,7 @@ androidx-compose-material = { group = "androidx.compose.material", name = "mater
androidx-compose-material3-windowSizeClass = { group = "androidx.compose.material3", name = "material3-window-size-class" }
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
androidx-compose-runtime-livedata = { group = "androidx.compose.runtime", name = "runtime-livedata" }
androidx-compose-ui-test = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-compose-ui-test = { group = "androidx.compose.ui", name = "ui-test-junit4", version.ref = "compose_ui_testing"}
androidx-compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-compose-ui-manifest-test = { group = "androidx.compose.ui", name = "ui-test-manifest"}
androidx-compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
Expand Down

0 comments on commit 9d13d10

Please sign in to comment.