From 430d3e616d70072a47b68e2ec4613ba1f83f70a0 Mon Sep 17 00:00:00 2001 From: Thomas Krause Date: Wed, 1 Nov 2023 11:03:07 +0100 Subject: [PATCH] Wait before clicking on search button in test --- src/test/java/org/corpus_tools/annis/gui/AnnisUITest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/org/corpus_tools/annis/gui/AnnisUITest.java b/src/test/java/org/corpus_tools/annis/gui/AnnisUITest.java index 317017692b..83aab1cd93 100644 --- a/src/test/java/org/corpus_tools/annis/gui/AnnisUITest.java +++ b/src/test/java/org/corpus_tools/annis/gui/AnnisUITest.java @@ -384,9 +384,13 @@ void searchPccCorpusMatches() throws Exception { awaitCondition(5, () -> "Valid query, click on \"Search\" to start searching." .equals(ui.getSearchView().getControlPanel().getQueryPanel().getLastPublicStatus())); + Thread.sleep(500); + Button searchButton = _get(Button.class, spec -> spec.withCaption("Search")); _click(searchButton); + Thread.sleep(500); + // Wait until the count is displayed String expectedStatus = "1 match\nin 1 document"; awaitCondition(60,