Skip to content

Commit 52a6275

Browse files
github-actions[bot]claude
authored andcommitted
Fix UI test by using accessible name instead of obfuscated class
The UI test was failing because it relied on an obfuscated class name 'W' to locate the activation code text field. The class name changed to 'Y' in a recent version of JetBrains Rider, causing the test to fail with NoSuchElementException. This change uses the stable 'accessiblename' attribute instead, which: - Is more stable across UI updates - Is semantically meaningful and self-documenting - Follows accessibility best practices 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a819f84 commit 52a6275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui-rd-tests/src/test/kotlin/ManageLicensesFrame.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class ManageLicensesFrame(remoteRobot: RemoteRobot, remoteComponent: RemoteCompo
2626

2727
fun enableFreeTier() {
2828
radioButton("Activation code").click()
29-
/// Note: The license code is obfuscated, so we use the class `W`. But a better solution is required.
30-
textFields(byXpath("//div[@class='W']")).first().text = System.getenv("RIDER_LICENSE")
29+
// Use accessible name instead of obfuscated class name for better stability
30+
textFields(byXpath("//div[@accessiblename='Activation code']")).first().text = System.getenv("RIDER_LICENSE")
3131
button("Activate").click()
3232
button(JButtonFixture.byText("Close"), timeout = Duration.ofSeconds(20)).click()
3333
}

0 commit comments

Comments
 (0)