Skip to content

Commit 3749667

Browse files
Resolved UI test cases issue
1 parent 15635a1 commit 3749667

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • checkmarx-ast-eclipse-plugin-tests/src/test/java/checkmarx/ast/eclipse/plugin/tests/ui

checkmarx-ast-eclipse-plugin-tests/src/test/java/checkmarx/ast/eclipse/plugin/tests/ui/BaseUITest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.junit.jupiter.api.AfterEach;
1818
import org.junit.jupiter.api.BeforeAll;
1919
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
20+
import org.eclipse.swt.widgets.Decorations;
2021
import org.eclipse.swt.widgets.Tree;
2122

2223
import com.checkmarx.eclipse.utils.PluginConstants;
@@ -305,8 +306,13 @@ protected static void waitForConnectionResponse() throws TimeoutException {
305306
boolean found = false;
306307
int retryIdx = 0;
307308
while (!found) {
308-
found = _bot.text().stream()
309-
.anyMatch(t -> t.getText().equals(INFO_SUCCESSFUL_CONNECTION));
309+
310+
for (var text : _bot.texts()) {
311+
if (((Decorations) text).getText().contains(INFO_SUCCESSFUL_CONNECTION)) {
312+
found=true;
313+
}
314+
}
315+
310316
if (found) break;
311317
if (retryIdx == 10) break;
312318
_bot.sleep(1000);

0 commit comments

Comments
 (0)