diff --git a/aspose-email-demo-test/src_test/com/axonivy/utils/docfactory/test/WebTestAsposeEmailDemoIT.java b/aspose-email-demo-test/src_test/com/axonivy/utils/docfactory/test/WebTestAsposeEmailDemoIT.java index 0057a5cb..e14db472 100644 --- a/aspose-email-demo-test/src_test/com/axonivy/utils/docfactory/test/WebTestAsposeEmailDemoIT.java +++ b/aspose-email-demo-test/src_test/com/axonivy/utils/docfactory/test/WebTestAsposeEmailDemoIT.java @@ -6,6 +6,7 @@ import static org.assertj.core.api.Assertions.assertThat; import java.io.File; +import java.time.Duration; import org.awaitility.Awaitility; import org.junit.jupiter.api.BeforeAll; @@ -32,7 +33,7 @@ public static void setUp() { @Test public void testMsgEmail() throws Exception { open(EngineUrl.createProcessUrl("AsposeEmailDemo/1712BF5507F25F15/start.ivp")); - File msg = $(By.id("form:createBtn")).shouldBe(visible).download(); + File msg = $(By.id("form:createBtn")).shouldBe(visible, Duration.ofSeconds(30)).download(); Awaitility.await().untilAsserted(() -> { assertThat(msg).exists();