Skip to content

Commit

Permalink
Merge pull request #169 from takahirom/tm/fix-to-use-twoline-goal/202…
Browse files Browse the repository at this point in the history
…5-02-25

Fix to use twoline goal text field
  • Loading branch information
takahirom authored Feb 25, 2025
2 parents 8def90c + edc3b84 commit 13d07b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ fun Scenario(
Row(
verticalAlignment = Alignment.CenterVertically
) {
TextField(
modifier = Modifier.weight(1f).padding(4.dp).testTag("goal"),
TextArea(
modifier = Modifier.weight(1f).padding(4.dp).testTag("goal").height(40.dp),
enabled = scenarioType.isScenario(),
state = goal,
placeholder = { Text("Goal") },
textStyle = JewelTheme.editorTextStyle,
decorationBoxModifier = Modifier.padding(horizontal = 8.dp)
)
IconActionButton(
key = AllIconsKeys.RunConfigurations.TestState.Run,
Expand Down Expand Up @@ -1174,4 +1176,4 @@ fun ExpandableSection(
}
}
}
}
}
11 changes: 11 additions & 0 deletions arbigent-ui/src/test/kotlin/UiTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ class UiTests(private val behavior: DescribedBehavior<TestRobot>) {
}
}
}
describe("when enter multiline goal") {
doIt {
enterGoal("First line of the goal\nSecond line of the goal\nThird line")
expandOptions()
changeScenarioId("multiline_scenario")
}
itShould("show multiline goal input properly") {
capture(it)
assertGoalInputExists()
}
}
describe("when enter goals and run") {
doIt {
enterGoal("launch the app")
Expand Down

0 comments on commit 13d07b0

Please sign in to comment.