Skip to content

Commit 71f7e8a

Browse files
TASK-1828886-1: improve tests stability
1 parent 27ff16c commit 71f7e8a

File tree

2 files changed

+6
-5
lines changed
  • samples/android-cmp-app/src/androidInstrumentedTest/kotlin/com/pega/constellation/sdk/kmp/samples/androidcmpapp/test/cases
  • ui-renderer-cmp/src/commonMain/kotlin/com/pega/constellation/sdk/kmp/ui/renderer/cmp/containers

2 files changed

+6
-5
lines changed

samples/android-cmp-app/src/androidInstrumentedTest/kotlin/com/pega/constellation/sdk/kmp/samples/androidcmpapp/test/cases/EmbeddedDataTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ class EmbeddedDataTest : ComposeTest(PegaVersion.v24_2_2) {
5959
it.findFirstWithText("model").performTextInput("A5")
6060
it.findFirstWithText("Price").performTextInput("123000")
6161
it.findFirstWithText("IsFirstOwner").onSiblings().onFirst().performClick()
62-
it.findFirstWithText("interior").performClick()
62+
it.findFirstWithText("interior").performScrollTo().performClick()
6363
onNodeWithText("comfort").performClick()
64-
it.findFirstWithText("Insurance").performClick()
64+
it.findFirstWithText("Insurance").performScrollTo().performClick()
6565
onNodeWithText("gold").performClick()
66-
it.findFirstWithText("client meeting date").performClick()
66+
it.findFirstWithText("client meeting date").performScrollTo().performClick()
6767
onNodeWithText("Today, ", substring = true).performClick()
6868
onNodeWithText("OK").performClick()
6969
it.findFirstWithText("Client meeting time").performScrollTo().performClick()

ui-renderer-cmp/src/commonMain/kotlin/com/pega/constellation/sdk/kmp/ui/renderer/cmp/containers/ModalViewContainerRenderer.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import androidx.compose.foundation.layout.Column
44
import androidx.compose.foundation.layout.Row
55
import androidx.compose.foundation.layout.fillMaxWidth
66
import androidx.compose.foundation.layout.padding
7-
import androidx.compose.material3.AlertDialog
7+
import androidx.compose.foundation.rememberScrollState
8+
import androidx.compose.foundation.verticalScroll
89
import androidx.compose.material3.BasicAlertDialog
910
import androidx.compose.material3.ButtonDefaults
1011
import androidx.compose.material3.Card
@@ -37,7 +38,7 @@ class ModalViewContainerRenderer : ComponentRenderer<ModalViewContainerComponent
3738
Card(
3839
modifier = Modifier.fillMaxWidth(),
3940
) {
40-
Column(Modifier.padding(16.dp)) {
41+
Column(Modifier.verticalScroll(rememberScrollState()).padding(16.dp)) {
4142
if (title.isNotEmpty()) {
4243
Heading(title)
4344
}

0 commit comments

Comments
 (0)