Skip to content

Commit 1fa92ee

Browse files
chore(deps): bump remote-robot from 0.11.22 to 0.11.23 (#329)
* chore(deps): bump remote-robot from 0.11.22 to 0.11.23 Bumps `remote-robot` from 0.11.22 to 0.11.23. Updates `com.intellij.remoterobot:remote-robot` from 0.11.22 to 0.11.23 Updates `com.intellij.remoterobot:remote-fixtures` from 0.11.22 to 0.11.23 --- updated-dependencies: - dependency-name: com.intellij.remoterobot:remote-robot dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: com.intellij.remoterobot:remote-fixtures dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix: fix failing tests Signed-off-by: Stephane Bouchet <[email protected]> * fix: fix failing tests Signed-off-by: Stephane Bouchet <[email protected]> * chore: fixed dependency metadata. Signed-off-by: Stephane Bouchet <[email protected]> * chore: fixed dependency metadata. Signed-off-by: Stephane Bouchet <[email protected]> * chore: fixed dependency metadata. Signed-off-by: Stephane Bouchet <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Stephane Bouchet <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephane Bouchet <[email protected]>
1 parent c166204 commit 1fa92ee

File tree

25 files changed

+161
-132
lines changed

25 files changed

+161
-132
lines changed

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ tasks {
4242

4343
jacocoTestReport {
4444
executionData.setFrom(fileTree(layout.buildDirectory).include("/jacoco/*.exec"))
45-
//classDirectories.setFrom(instrumentCode)
4645
reports {
4746
xml.required = true
4847
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
# libraries
3-
remote-robot = "0.11.22"
3+
remote-robot = "0.11.23"
44
kotlin = "2.1.0"
55
junit-jupiter = "5.11.3"
66

gradle/verification-metadata.xml

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</key-servers>
1010
<trusted-keys>
1111
<trusted-key id="6F538074CCEBF35F28AF9B066A0975F8B1127B83" group="org.jetbrains.kotlin"/>
12-
<trusted-key id="2e3a1affe42b5f53af19f780bcf4173966770193" group="org.jetbrains"/>
12+
<trusted-key id="2E3A1AFFE42B5F53AF19F780BCF4173966770193" group="org.jetbrains"/>
1313
<trusted-key id="A413F67D71BEEC23ADD0CE0ACB43338E060CF9FA" group="org.jacoco"/>
1414
<trusted-key id="60200AC4AE761F1614D6C46766D68DAA073BE985" group="org.slf4j"/>
1515
<trusted-key id="6A30D7A614899833CE2F5FA3CEE8B79520334B30" group="org.assertj" version="2.2.1"/>
@@ -30,33 +30,33 @@
3030
</trusted-keys>
3131
</configuration>
3232
<components>
33-
<component group="com.google.code.gson" name="gson" version="2.8.5">
34-
<artifact name="gson-2.8.5.jar">
35-
<sha256 value="233a0149fc365c9f6edbd683cfe266b19bdc773be98eabdaf6b3c924b48e7d81" origin="Generated by Gradle" reason="Artifact is not signed"/>
33+
<component group="com.google.code.gson" name="gson" version="2.10.1">
34+
<artifact name="gson-2.10.1.jar">
35+
<sha256 value="4241c14a7727c34feea6507ec801318a3d4a90f070e4525681079fb94ee4c593" origin="Generated by Gradle" reason="Artifact is not signed"/>
3636
</artifact>
37-
<artifact name="gson-2.8.5.pom">
38-
<sha256 value="b8308557a7fccc92d9fe7c8cd0599258b361285d2ecde7689eda98843255a092" origin="Generated by Gradle" reason="Artifact is not signed"/>
37+
<artifact name="gson-2.10.1.pom">
38+
<sha256 value="d2b115634f5c085db4b9c9ffc2658e89e231fdbfbe2242121a1cd95d4d948dd7" origin="Generated by Gradle" reason="Artifact is not signed"/>
3939
</artifact>
4040
</component>
41-
<component group="com.google.code.gson" name="gson-parent" version="2.8.5">
42-
<artifact name="gson-parent-2.8.5.pom">
43-
<sha256 value="8f1fec72b91a71ea39ec39f5f778c4d1124b6b097c6d55b3a50b554a52237b27" origin="Generated by Gradle" reason="Artifact is not signed"/>
41+
<component group="com.google.code.gson" name="gson-parent" version="2.10.1">
42+
<artifact name="gson-parent-2.10.1.pom">
43+
<sha256 value="4248e0882426c615182385d6086c3ef3262e769957189e29306280b85482b833" origin="Generated by Gradle" reason="Artifact is not signed"/>
4444
</artifact>
4545
</component>
46-
<component group="com.intellij.remoterobot" name="remote-fixtures" version="0.11.22">
47-
<artifact name="remote-fixtures-0.11.22.jar">
48-
<sha256 value="1371d5f483dc3c02a31a04dec7e3260f0444309fcc9f4e30fe49fc668f9e78da" origin="Generated by Gradle" reason="Artifact is not signed"/>
46+
<component group="com.intellij.remoterobot" name="remote-fixtures" version="0.11.23">
47+
<artifact name="remote-fixtures-0.11.23.jar">
48+
<sha256 value="d4c84071ee573e85d62c6b09a6a2aa01347ac81a230b43ff9722795afaa8bbbb" origin="Generated by Gradle" reason="Artifact is not signed"/>
4949
</artifact>
50-
<artifact name="remote-fixtures-0.11.22.module">
51-
<sha256 value="3b166c1d4c015921841b207261ea0f9a7b8b640b91c5ee29c2534444c637c223" origin="Generated by Gradle" reason="Artifact is not signed"/>
50+
<artifact name="remote-fixtures-0.11.23.module">
51+
<sha256 value="a7c5398e8afbede3cea15c176900dde9293a736c89c697286867399296e746c2" origin="Generated by Gradle" reason="Artifact is not signed"/>
5252
</artifact>
5353
</component>
54-
<component group="com.intellij.remoterobot" name="remote-robot" version="0.11.22">
55-
<artifact name="remote-robot-0.11.22.jar">
56-
<sha256 value="3dc344e30bfab4fec77d487633edbc919a0c804854618980da796cbaf1964180" origin="Generated by Gradle" reason="Artifact is not signed"/>
54+
<component group="com.intellij.remoterobot" name="remote-robot" version="0.11.23">
55+
<artifact name="remote-robot-0.11.23.jar">
56+
<sha256 value="75906089037b0753de4872eddf98f827644e6a1a2bca07cb8e8cf008d6e12cdf" origin="Generated by Gradle" reason="Artifact is not signed"/>
5757
</artifact>
58-
<artifact name="remote-robot-0.11.22.module">
59-
<sha256 value="4cf6c5c5e9c6aa7ba67798fe02ac5e3c09465cd6c38868f23beac5b78e9c921b" origin="Generated by Gradle" reason="Artifact is not signed"/>
58+
<artifact name="remote-robot-0.11.23.module">
59+
<sha256 value="b4f329769aea92c3a449aecee43ab1404852e371635013f0538c012163db1517" origin="Generated by Gradle" reason="Artifact is not signed"/>
6060
</artifact>
6161
</component>
6262
<component group="com.squareup.okhttp3" name="okhttp" version="3.14.9">
@@ -131,7 +131,7 @@
131131
</component>
132132
<component group="org.junit" name="junit-bom" version="5.5.2">
133133
<artifact name="junit-bom-5.5.2.pom">
134-
<sha256 value="5a49562a4704541e69d4ee316cd7eaf711cddb7cad5d0f886bf8a1fe98d6a9c5" origin="Generated by Gradle" reason="Artifact is not signed"/>
134+
<sha256 value="5a49562a4704541e69d4ee316cd7eaf711cddb7cad5d0f886bf8a1fe98d6a9c5" origin="Generated by Gradle" reason="Artifact is not signed"/>
135135
</artifact>
136136
</component>
137137
<component group="org.junit" name="junit-bom" version="5.6.2">
@@ -192,9 +192,22 @@
192192
<sha256 value="a72aaaf8dd051899fa089e783ec7d4827ac4d7d1876201c6deecbaa94a0dc956" origin="Generated by Gradle" reason="Artifact is not signed"/>
193193
</artifact>
194194
</component>
195-
<component group="org.sonarqube" name="org.sonarqube.gradle.plugin" version="5.1.0.4882">
196-
<artifact name="org.sonarqube.gradle.plugin-5.1.0.4882.pom">
197-
<sha256 value="65b8b06124076456badc62e9efe369b57381bef2d035b06d8ae1a0d67709c9b8" origin="Generated by Gradle" reason="Artifact is not signed"/>
195+
<component group="org.slf4j" name="slf4j-api" version="2.0.13">
196+
<artifact name="slf4j-api-2.0.13.jar">
197+
<sha256 value="e7c2a48e8515ba1f49fa637d57b4e2f590b3f5bd97407ac699c3aa5efb1204a9" origin="Generated by Gradle" reason="Artifact is not signed"/>
198+
</artifact>
199+
<artifact name="slf4j-api-2.0.13.pom">
200+
<sha256 value="51805cfda80ca2ac82041b906d9865d39e9823e358a0eeb62379dfed475c1571" origin="Generated by Gradle" reason="Artifact is not signed"/>
201+
</artifact>
202+
</component>
203+
<component group="org.slf4j" name="slf4j-bom" version="2.0.13">
204+
<artifact name="slf4j-bom-2.0.13.pom">
205+
<sha256 value="7af272d7a738e2b98763791ffdd896040e8beb298a88fd606214407976cd310a" origin="Generated by Gradle" reason="Artifact is not signed"/>
206+
</artifact>
207+
</component>
208+
<component group="org.slf4j" name="slf4j-parent" version="2.0.13">
209+
<artifact name="slf4j-parent-2.0.13.pom">
210+
<sha256 value="67facfd51f06935cea85615a04775d70d80bfd03ad0f37670351f920ed0bb58a" origin="Generated by Gradle" reason="Artifact is not signed"/>
198211
</artifact>
199212
</component>
200213
<component group="org.sonarqube" name="org.sonarqube.gradle.plugin" version="5.1.0.4882">

src/main/java/com/redhat/devtools/intellij/commonuitest/UITestRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
package com.redhat.devtools.intellij.commonuitest;
1212

1313
import com.intellij.remoterobot.RemoteRobot;
14-
import com.intellij.remoterobot.fixtures.CommonContainerFixture;
1514
import com.intellij.remoterobot.stepsProcessing.StepLogger;
1615
import com.intellij.remoterobot.stepsProcessing.StepWorker;
1716
import com.redhat.devtools.intellij.commonuitest.exceptions.UITestException;
1817
import com.redhat.devtools.intellij.commonuitest.utils.constants.XPathDefinitions;
1918
import com.redhat.devtools.intellij.commonuitest.utils.runner.IntelliJVersion;
19+
import com.redhat.devtools.intellij.commonuitest.utils.steps.SharedSteps;
2020

2121
import java.io.File;
2222
import java.io.FileOutputStream;
@@ -154,7 +154,7 @@ public static RemoteRobot getRemoteRobot() {
154154
public static RemoteRobot getRemoteRobotConnection(int port) {
155155
return step("Create an instance of the RemoteRobot listening on port " + port, () -> {
156156
RemoteRobot remoteRobot = new RemoteRobot("http://127.0.0.1:" + port);
157-
waitFor(Duration.ofSeconds(30), Duration.ofMillis(500), () -> remoteRobot.find(CommonContainerFixture.class, byXpath(XPathDefinitions.FLAT_WELCOME_FRAME)).isShowing());
157+
SharedSteps.waitForComponentByXpath(remoteRobot,30, 200, byXpath(XPathDefinitions.FLAT_WELCOME_FRAME));
158158
return remoteRobot;
159159
});
160160
}

src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/dialogs/FlatWelcomeFrame.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ public class FlatWelcomeFrame extends CommonContainerFixture {
6161
private static final String PROJECTS_BUTTON = "Projects";
6262
private static final String TIP_OF_THE_DAY = "Tip of the Day";
6363
private final RemoteRobot remoteRobot;
64-
private final int ideaVersion;
64+
private final int ideaVersionInt = UITestRunner.getIdeaVersionInt();
6565

6666
public FlatWelcomeFrame(@NotNull RemoteRobot remoteRobot, @NotNull RemoteComponent remoteComponent) {
6767
super(remoteRobot, remoteComponent);
6868
this.remoteRobot = remoteRobot;
69-
this.ideaVersion = UITestRunner.getIdeaVersion().toInt();
7069
}
7170

7271
/**
@@ -93,7 +92,7 @@ public void openProject(String projectName) {
9392
*/
9493
public void clickOnLink(String label) {
9594
// Code for IntelliJ IDEA 2020.3 or newer
96-
if (ideaVersion >= 20203) {
95+
if (ideaVersionInt >= 20203) {
9796
welcomeFrameLink(label).click();
9897
}
9998
// Code for IntelliJ IDEA 2020.2 or earlier
@@ -150,11 +149,11 @@ public void clearExceptions() {
150149
* Open the 'Preferences' dialog
151150
*/
152151
public void openSettingsDialog() {
153-
if (ideaVersion <= 20202) {
152+
if (ideaVersionInt <= 20202) {
154153
clickOnLink("Configure");
155154
HeavyWeightWindowFixture heavyWeightWindowFixture = find(HeavyWeightWindowFixture.class, Duration.ofSeconds(5));
156155
heavyWeightWindowFixture.findText("Preferences").click();
157-
} else if (ideaVersion <= 20212) {
156+
} else if (ideaVersionInt <= 20212) {
158157
JListFixture jListFixture = remoteRobot.find(JListFixture.class, byXpath(XPathDefinitions.JBLIST));
159158
jListFixture.clickItem("Customize", false);
160159
remoteRobot.find(ContainerFixture.class, byXpath(XPathDefinitions.DIALOG_PANEL)).findText("All settings" + '\u2026').click();
@@ -205,20 +204,20 @@ private void resizeWelcomeWindow() {
205204
* @return fixture for the 'Tip Of the Day' dialog
206205
*/
207206
public TipDialog openTipDialog() {
208-
if (ideaVersion >= 20211) {
207+
if (ideaVersionInt >= 20211) {
209208
FlatWelcomeFrame flatWelcomeFrame = remoteRobot.find(FlatWelcomeFrame.class, Duration.ofSeconds(2));
210-
if (ideaVersion >= 20223) { // COMMUNITY_V_2022_3 and higher version have different labels for Learn button
209+
if (ideaVersionInt >= 20223) { // COMMUNITY_V_2022_3 and higher version have different labels for Learn button
211210
flatWelcomeFrame.findText(ButtonLabels.LEARN_LABEL).click();
212211
} else {
213212
flatWelcomeFrame.findText(ButtonLabels.LEARN_INTELLIJ_IDEA_LABEL).click();
214213
}
215-
SharedSteps.waitForComponentByXpath(remoteRobot, 2, 1, byXpath(XPathDefinitions.TIP_DIALOG_2));
214+
SharedSteps.waitForComponentByXpath(remoteRobot, 2, 200, byXpath(XPathDefinitions.TIP_DIALOG_2));
216215
flatWelcomeFrame.findText(TIP_OF_THE_DAY).click();
217-
} else if (ideaVersion <= 20202) {
216+
} else if (ideaVersionInt <= 20202) {
218217
clickOnLink("Get Help");
219218
HeavyWeightWindowFixture heavyWeightWindowFixture = find(HeavyWeightWindowFixture.class, Duration.ofSeconds(5));
220219
heavyWeightWindowFixture.findText(TIP_OF_THE_DAY).click();
221-
} else if (ideaVersion == 20203) { // IJ 2020.3
220+
} else if (ideaVersionInt == 20203) { // IJ 2020.3
222221
actionLink("Help").click();
223222
HeavyWeightWindowFixture heavyWeightWindowFixture = find(HeavyWeightWindowFixture.class, Duration.ofSeconds(5));
224223
heavyWeightWindowFixture.findText(TIP_OF_THE_DAY).click();
@@ -254,17 +253,17 @@ public void preventTipDialogFromOpening() {
254253
* Switch to the 'Projects' page of flat welcome frame
255254
*/
256255
public void switchToProjectsPage() {
257-
if (ideaVersion >= 20213) {
256+
if (ideaVersionInt >= 20213) {
258257
JTreeFixture jTreeFixture = remoteRobot.find(JTreeFixture.class, byXpath(XPathDefinitions.TREE));
259258
jTreeFixture.findText(PROJECTS_BUTTON).click();
260-
} else if (ideaVersion >= 20203) {
259+
} else if (ideaVersionInt >= 20203) {
261260
JListFixture jListFixture = remoteRobot.find(JListFixture.class, byXpath(XPathDefinitions.JBLIST));
262261
jListFixture.clickItem(PROJECTS_BUTTON, false);
263262
}
264263
}
265264

266265
private int projectsCount() {
267-
if (ideaVersion >= 20222) {
266+
if (ideaVersionInt >= 20222) {
268267
try {
269268
JTreeFixture projects = remoteRobot.findAll(JTreeFixture.class, byXpath(XPathDefinitions.RECENT_PROJECT_PANEL_NEW_2)).get(0);
270269
return projects.findAllText().size() / 2;
@@ -287,7 +286,7 @@ private JButtonFixture welcomeFrameLink(String label) {
287286
if (UtilsKt.hasAnyComponent(this, byXpath(XPathDefinitions.RECENT_PROJECT_PANEL_NEW))) {
288287
return button(byXpath(XPathDefinitions.jBOptionButton(label)), Duration.ofSeconds(2));
289288
}
290-
if (ideaVersion >= 20241 && label.equals("New Project")) {
289+
if (ideaVersionInt >= 20241 && label.equals("New Project")) {
291290
return button(byXpath(XPathDefinitions.CREATE_NEW_PROJECT), Duration.ofSeconds(2));
292291
}
293292
return button(byXpath(XPathDefinitions.nonOpaquePanel(label)), Duration.ofSeconds(2));
@@ -299,7 +298,7 @@ private ComponentFixture ideErrorsIcon() {
299298

300299
private void removeTopProjectFromRecentProjects() {
301300
ComponentFixture recentProjects;
302-
if (ideaVersion >= 20222) {
301+
if (ideaVersionInt >= 20222) {
303302
recentProjects = remoteRobot.findAll(JTreeFixture.class, byXpath(XPathDefinitions.RECENT_PROJECT_PANEL_NEW_2)).get(0);
304303
} else {
305304
recentProjects = jLists(byXpath(XPathDefinitions.RECENT_PROJECTS)).get(0);
@@ -309,14 +308,14 @@ private void removeTopProjectFromRecentProjects() {
309308
recentProjects.runJs("const horizontal_offset = component.getWidth()-22;\n" +
310309
"robot.click(component, new Point(horizontal_offset, 22), MouseButton.LEFT_BUTTON, 1);");
311310

312-
if (ideaVersion >= 20231) {
311+
if (ideaVersionInt >= 20231) {
313312
ComponentFixture removeDialog = remoteRobot.find(ComponentFixture.class, byXpath(XPathDefinitions.MY_DIALOG), Duration.ofSeconds(10));
314313
removeDialog.findText(ButtonLabels.REMOVE_FROM_LIST_LABEL).click();
315-
} else if (ideaVersion >= 20203) { // Code for IntelliJ Idea 2020.3 or newer
314+
} else if (ideaVersionInt >= 20203) { // Code for IntelliJ Idea 2020.3 or newer
316315
List<JPopupMenuFixture> jPopupMenuFixtures = jPopupMenus(JPopupMenuFixture.Companion.byType());
317316
if (!jPopupMenuFixtures.isEmpty()) {
318317
JPopupMenuFixture contextMenu = jPopupMenuFixtures.get(0);
319-
if (ideaVersion >= 20222) {
318+
if (ideaVersionInt >= 20222) {
320319
contextMenu.select("Remove from Recent Projects" + '\u2026');
321320
button(byXpath(XPathDefinitions.REMOVE_PROJECT_BUTTON)).click();
322321
} else {

src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/dialogs/navigation/SearchEverywherePopup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void activateTab(String tabName) {
6767
* @param cmdToEnter command that will be invoked using the search field
6868
*/
6969
public void invokeCmd(String cmdToEnter) {
70-
JTextFieldFixture searchField = textField(JTextFieldFixture.Companion.byType(), Duration.ofSeconds(10));
70+
JTextFieldFixture searchField = textField(JTextFieldFixture.Companion.byType(), Duration.ofSeconds(2));
7171
searchField.click();
7272
searchField.setText(cmdToEnter);
7373
waitFor(Duration.ofSeconds(30), Duration.ofSeconds(1), "The search in the Search Everywhere popup did not finish in 30 seconds.", () -> didSearchFinish(cmdToEnter));

0 commit comments

Comments
 (0)