Skip to content

Commit 6eea59a

Browse files
authored
Fix Explorer-based UI tests (#3967)
Tests assume that the 'Explorer' tab is always selected by default, which is no longer true
1 parent b74af17 commit 6eea59a

File tree

1 file changed

+4
-3
lines changed
  • ui-tests/tst/software/aws/toolkits/jetbrains/uitests/fixtures

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ fun IdeaFrame.awsExplorer(
1919
val locator = byXpath("//div[@accessiblename='AWS Toolkit Tool Window']")
2020

2121
step("AWS toolkit tool window") {
22-
val explorer = try {
23-
find<AwsExplorer>(locator)
22+
try {
23+
find<ComponentFixture>(locator)
2424
} catch (e: Exception) {
2525
step("Open tool window") {
2626
// Click the tool window stripe
2727
find(ComponentFixture::class.java, byXpath("//div[@accessiblename='AWS Toolkit' and @class='StripeButton' and @text='AWS Toolkit']")).click()
2828
find(locator, timeout)
2929
}
3030
}
31-
31+
find<ComponentFixture>(byXpath("//div[@class='TabContainer']//div[@text='Explorer']")).click()
32+
val explorer = find<AwsExplorer>(byXpath("//div[@class='ExplorerToolWindow']"))
3233
explorer.apply(function)
3334
}
3435
}

0 commit comments

Comments
 (0)