Skip to content

Commit 95a2da4

Browse files
committed
fix: incorrect xpath for IJ versions
Signed-off-by: Martin Szuc <[email protected]>
1 parent ab25911 commit 95a2da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/mainidewindow/toolwindowspane/AbstractToolWinPane.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public void closeGradleBuildToolPane() {
9999
public JButtonFixture stripeButton(String label, boolean isPaneOpened) {
100100
if (isPaneOpened) {
101101
if (label.equals(ButtonLabels.MAVEN_STRIPE_BUTTON_LABEL) || label.equals(ButtonLabels.GRADLE_STRIPE_BUTTON_LABEL)) {
102-
if (UITestRunner.getIdeaVersionInt() >= 20232) { // Code for IntelliJ version 2023.2 and newer
102+
if (UITestRunner.getIdeaVersionInt() >= 20223) { // Code for IntelliJ version 2022.3 and newer
103103
return button(byXpath(XPathDefinitions.toolWindowButton(label)), Duration.ofSeconds(2));
104-
} else { // Code for IntelliJ versions 2023.1 and older
104+
} else { // Code for IntelliJ versions 2022.2 and older
105105
return button(byXpath(XPathDefinitions.toolWindowSvg(label)), Duration.ofSeconds(2));
106106
}
107107
} else if (label.equals(ButtonLabels.PROJECT_STRIPE_BUTTON_LABEL)) {

0 commit comments

Comments
 (0)