Skip to content

Commit 78c9422

Browse files
committed
Bump testing libraries, fix tests
1 parent 55df841 commit 78c9422

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ tomcat-catalina-jakarta = { module = "org.apache.tomcat:tomcat-catalina", versio
204204
tomcat-embed-jasper-jakarta = { module = "org.apache.tomcat.embed:tomcat-embed-jasper", version = "11.0.10" }
205205

206206
# test libraries
207-
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version = "1.6.8" }
207+
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version = "1.10.1" }
208208
androidx-test-core = { module = "androidx.test:core", version.ref = "androidxTestCore" }
209209
androidx-test-core-ktx = { module = "androidx.test:core-ktx", version.ref = "androidxTestCore" }
210210
androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" }
211211
androidx-test-espresso-idling-resource = { module = "androidx.test.espresso:espresso-idling-resource", version.ref = "espresso" }
212-
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version = "1.1.5" }
213-
androidx-test-orchestrator = { module = "androidx.test:orchestrator", version = "1.5.0" }
212+
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version = "1.3.0" }
213+
androidx-test-orchestrator = { module = "androidx.test:orchestrator", version = "1.6.1" }
214214
androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidxTestCore" }
215-
androidx-test-runner = { module = "androidx.test:runner", version = "1.6.2" }
215+
androidx-test-runner = { module = "androidx.test:runner", version = "1.7.0" }
216216
awaitility-kotlin = { module = "org.awaitility:awaitility-kotlin", version = "4.1.1" }
217217
awaitility-kotlin-spring7 = { module = "org.awaitility:awaitility-kotlin", version = "4.3.0" }
218218
awaitility3-kotlin = { module = "org.awaitility:awaitility-kotlin", version = "3.1.6" }

sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/UserFeedbackUiTest.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package io.sentry.uitest.android
22

33
import android.graphics.Color
4-
import android.util.TypedValue
54
import android.view.View
65
import android.widget.EditText
6+
import android.widget.FrameLayout
77
import android.widget.LinearLayout
88
import androidx.test.core.app.launchActivity
99
import androidx.test.espresso.Espresso.onView
@@ -550,10 +550,6 @@ class UserFeedbackUiTest : BaseUiTest() {
550550
assertEquals((densityScale * 12).toInt(), widget.paddingTop)
551551
assertEquals((densityScale * 12).toInt(), widget.paddingBottom)
552552

553-
val typedValue = TypedValue()
554-
widget.context.theme.resolveAttribute(android.R.attr.colorForeground, typedValue, true)
555-
assertEquals(typedValue.data, widget.currentTextColor)
556-
557553
assertEquals("Report a Bug", widget.text)
558554
}
559555

@@ -666,14 +662,19 @@ class UserFeedbackUiTest : BaseUiTest() {
666662
val buttonId = Int.MAX_VALUE - 1
667663
val feedbackScenario = launchActivity<EmptyActivity>()
668664
feedbackScenario.onActivity {
665+
val layoutParams =
666+
FrameLayout.LayoutParams(
667+
LinearLayout.LayoutParams.MATCH_PARENT,
668+
LinearLayout.LayoutParams.MATCH_PARENT,
669+
)
669670
val view =
670-
LinearLayout(it).apply {
671-
orientation = LinearLayout.VERTICAL
671+
FrameLayout(it).apply {
672672
addView(
673673
SentryUserFeedbackButton(it).apply {
674674
id = buttonId
675675
widgetConfig?.invoke(this)
676-
}
676+
},
677+
layoutParams,
677678
)
678679
}
679680
it.setContentView(view)

0 commit comments

Comments
 (0)