Skip to content

Commit

Permalink
refresh in testMultipleConfigEditHistory method
Browse files Browse the repository at this point in the history
  • Loading branch information
anusreelakshmi934 committed Jan 15, 2025
1 parent 7ee3961 commit 2f5d844
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,9 @@ public void testMultipleConfigEditHistory() {
String activeCfgParams2 = cfgEntries2.get(UIBotTestUtils.ConfigEntries.PARAMS.toString());
Assertions.assertEquals("", activeCfgParams2, "The active config params " + activeCfgParams2 + " does not match expected params of blank");

UIBotTestUtils.refreshLibertyToolWindow(remoteRobot);
UIBotTestUtils.expandLibertyToolWindowProjectTree(remoteRobot, getSmMPProjectName());

// Edit configuration 1
UIBotTestUtils.selectConfigUsingToolbar(remoteRobot, configName1);
String cfgUID11 = "mCfgHist11";
Expand All @@ -965,6 +968,9 @@ public void testMultipleConfigEditHistory() {
String newCfgStartParams2 = getStartParams() + " " + cfgUID22;
UIBotTestUtils.editLibertyConfigUsingEditConfigDialog(remoteRobot, newCfgName2, newCfgStartParams2);

UIBotTestUtils.refreshLibertyToolWindow(remoteRobot);
UIBotTestUtils.expandLibertyToolWindowProjectTree(remoteRobot, getSmMPProjectName());

// Find newly created config 1 in the config selection box on the toolbar of the project frame.
UIBotTestUtils.selectConfigUsingToolbar(remoteRobot, newCfgName1);

Expand Down Expand Up @@ -1144,8 +1150,6 @@ public static void prepareEnv(String projectPath, String projectName) {
// IntelliJ does not start building and indexing until the Project View is open
UIBotTestUtils.waitForIndexing(remoteRobot);
UIBotTestUtils.openAndValidateLibertyToolWindow(remoteRobot, projectName);
// Refresh the Liberty tool window using the refresh icon on the toolbar.
UIBotTestUtils.refreshLibertyToolWindow(remoteRobot);
UIBotTestUtils.expandLibertyToolWindowProjectTree(remoteRobot, projectName);

// Close all open editors.
Expand Down

0 comments on commit 2f5d844

Please sign in to comment.