Skip to content

Commit b4e7016

Browse files
authored
Fixing UI test (#2891)
1 parent 06342c8 commit b4e7016

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,24 @@ class DynamicResourcesSettingsTest {
4949
selectPreferencePage("Tools", message("aws.settings.title"), message("aws.settings.dynamic_resources_configurable.title"))
5050

5151
val applyButton = button("Apply")
52-
step("Clear all resources") {
53-
button(message("aws.settings.dynamic_resources_configurable.clear_all")).click()
52+
53+
step("Select all resources") {
54+
button(message("aws.settings.dynamic_resources_configurable.select_all")).click()
5455
waitFor { applyButton.isEnabled() }
5556
applyButton.click()
5657

5758
awsExplorer {
58-
assertThat(explorerTree().findAllText { it.text.contains("AWS") }).isEmpty()
59+
assertThat(explorerTree().findAllText { it.text.contains(message("aws.settings.title")) }).isNotEmpty()
5960
}
6061
}
6162

62-
step("Select all resources") {
63-
button(message("aws.settings.dynamic_resources_configurable.select_all")).click()
63+
step("Clear all resources") {
64+
button(message("aws.settings.dynamic_resources_configurable.clear_all")).click()
6465
waitFor { applyButton.isEnabled() }
6566
applyButton.click()
6667

6768
awsExplorer {
68-
assertThat(explorerTree().findAllText { it.text.contains(message("aws.settings.title")) }).isNotEmpty()
69+
assertThat(explorerTree().findAllText { it.text.contains("AWS") }).isEmpty()
6970
}
7071
}
7172
}

0 commit comments

Comments
 (0)