Skip to content

Commit

Permalink
Wait before clicking on search button in test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Nov 1, 2023
1 parent 4722004 commit 430d3e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/org/corpus_tools/annis/gui/AnnisUITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 430d3e6

Please sign in to comment.