Skip to content

Commit

Permalink
stabilize mail: increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Oct 31, 2023
1 parent 1fadbf2 commit fb3e062
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit fb3e062

Please sign in to comment.