Skip to content

Commit 0f9b946

Browse files
authored
fix: revert changes needed for Quarkus (#357)
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 201fd37 commit 0f9b946

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,16 @@ public void disableNotifications() {
211211
switchToProjectsPage();
212212
}
213213

214+
/**
215+
* Prevent the 'Tip of the Day' dialog from opening after project import
216+
*/
217+
public void preventTipDialogFromOpening() {
218+
TipDialog tipDialog = openTipDialog();
219+
tipDialog.dontShowTipsCheckBox().setValue(true);
220+
tipDialog.close();
221+
switchToProjectsPage();
222+
}
223+
214224
/**
215225
* Switch to the 'Projects' page of flat welcome frame
216226
*/

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ public NewProjectDialogWizard(@NotNull RemoteRobot remoteRobot, @NotNull RemoteC
3434
super(remoteRobot, remoteComponent);
3535
}
3636

37+
/**
38+
* Move to the previous page of the 'New Project' dialog by clicking on the 'Previous' button
39+
*/
40+
public void previous() {
41+
clickOnButton(ButtonLabels.PREVIOUS_LABEL);
42+
}
43+
44+
/**
45+
* Move to the next page of the 'New Project' dialog by clicking on the 'Next' button
46+
*/
47+
public void next() {
48+
clickOnButton(ButtonLabels.NEXT_LABEL);
49+
}
50+
3751
/**
3852
* Finish the 'New Project' dialog
3953
*/

src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/dialogs/project/pages/NewProjectFirstPage.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ public void selectNewProjectType(NewProjectType projectType) {
7070
}
7171
}
7272

73+
/**
74+
* Set the project type to specific type
75+
*
76+
* @param projectType name of the project type to which will be changed the current settings
77+
*/
78+
public void selectNewProjectType(String projectType) {
79+
jLists(JListFixture.Companion.byType()).get(0).findText(projectType).click();
80+
}
81+
7382
/**
7483
* Set the project name
7584
*

src/main/java/com/redhat/devtools/intellij/commonuitest/utils/constants/ButtonLabels.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public class ButtonLabels {
2323
public static final String CANCEL_LABEL = "Cancel";
2424
public static final String OK_LABEL = "OK";
2525
public static final String APPLY_LABEL = "Apply";
26+
public static final String NEXT_LABEL = "Next";
27+
public static final String PREVIOUS_LABEL = "Previous";
2628
public static final String CREATE_LABEL = "Create";
2729
public static final String PROJECT_STRIPE_BUTTON_LABEL = "Project";
2830
public static final String MAVEN_STRIPE_BUTTON_LABEL = "Maven";

0 commit comments

Comments
 (0)