From ba83677038d7099037c714857dfc2cd2f4b87c15 Mon Sep 17 00:00:00 2001 From: Marco Collovati Date: Sun, 10 Nov 2024 11:17:51 +0100 Subject: [PATCH] test: wait for element before getting text (#129) --- .../mcollovati/vertx/vaadin/quarkus/it/AbstractCdiIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertx-vaadin-quarkus-extension/integration-tests/common-test-code/src/test/java/com/github/mcollovati/vertx/vaadin/quarkus/it/AbstractCdiIT.java b/vertx-vaadin-quarkus-extension/integration-tests/common-test-code/src/test/java/com/github/mcollovati/vertx/vaadin/quarkus/it/AbstractCdiIT.java index 47eafc67..6741e55c 100644 --- a/vertx-vaadin-quarkus-extension/integration-tests/common-test-code/src/test/java/com/github/mcollovati/vertx/vaadin/quarkus/it/AbstractCdiIT.java +++ b/vertx-vaadin-quarkus-extension/integration-tests/common-test-code/src/test/java/com/github/mcollovati/vertx/vaadin/quarkus/it/AbstractCdiIT.java @@ -42,7 +42,7 @@ protected void follow(String linkText) { } protected String getText(String id) { - return findElement(By.id(id)).getText(); + return waitUntil(d -> findElement(By.id(id))).getText(); } protected void assertCountEquals(int expectedCount, String counter) throws IOException {