Skip to content

Commit 298c752

Browse files
authored
Fix UI tests (#3008)
1 parent 8e2223c commit 298c752

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui-tests/tst/software/aws/toolkits/jetbrains/uitests/fixtures/Preferences.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ open class PreferencesDialog(
3232
remoteComponent: RemoteComponent
3333
) : DialogFixture(remoteRobot, remoteComponent) {
3434
fun search(query: String) = step("Search $query") {
35-
textField(byXpath("//div[@class='TextFieldWithProcessing']")).text = query
35+
textField(byXpath("//div[@class='SettingsSearch']//div[@class='TextFieldWithProcessing']")).text = query
3636
}
3737

3838
fun selectPreferencePage(vararg crumbs: String) {

ui-tests/tst/software/aws/toolkits/jetbrains/uitests/tests/SamRunConfigTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class SamRunConfigTest {
9797
find<JListFixture>(byXpath("//div[@class='MyList']")).clickItem("Edit Configurations...")
9898
}
9999
addRunConfig()
100-
find<ComboBoxFixture>(byXpath("//div[@text='Runtime:']/following-sibling::div[@class='ComboBox']")).selectItem("java11")
100+
find<ComboBoxFixture>(byXpath("(//div[@text='Runtime:']/following-sibling::div[@class='ComboBox'])[1]")).selectItem("java11")
101101
findAndClick("//div[@class='HandlerPanel']")
102102
keyboard { enterText("helloworld.App::handleRequest") }
103103
findAndClick("//div[@class='MyEditorTextField']")

0 commit comments

Comments
 (0)