diff --git a/src/test/java/io/openliberty/tools/intellij/it/SingleModMPProjectTestCommon.java b/src/test/java/io/openliberty/tools/intellij/it/SingleModMPProjectTestCommon.java index 447f1ec85..fab638877 100644 --- a/src/test/java/io/openliberty/tools/intellij/it/SingleModMPProjectTestCommon.java +++ b/src/test/java/io/openliberty/tools/intellij/it/SingleModMPProjectTestCommon.java @@ -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"; @@ -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); @@ -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.