diff --git a/integration_test/src/it/scala/org/scalawebtest/integration/js/AjaxSpec.scala b/integration_test/src/it/scala/org/scalawebtest/integration/js/AjaxSpec.scala index 2ea6e42..2c0574b 100755 --- a/integration_test/src/it/scala/org/scalawebtest/integration/js/AjaxSpec.scala +++ b/integration_test/src/it/scala/org/scalawebtest/integration/js/AjaxSpec.scala @@ -23,12 +23,12 @@ class AjaxSpec extends ScalaWebTestBaseSpec { config.enableJavaScript(throwOnError = true) "A simple webpage loading content with JS" should "be correctly interpreted by HtmlUnit" in { - eventually(timeout(1 second)) { + eventually(timeout(3 seconds)) { container.text should include("Text loaded with JavaScript") } } it should "work with CheckingGauge" in { - eventually(timeout(1 second)) { + eventually(timeout(3 seconds)) { fits(
Text loaded with JavaScript
) } } diff --git a/integration_test/src/it/scala/org/scalawebtest/integration/navigation/EnforceNavigateTo.scala b/integration_test/src/it/scala/org/scalawebtest/integration/navigation/EnforceNavigateTo.scala index ee9fc21..bd79e5c 100755 --- a/integration_test/src/it/scala/org/scalawebtest/integration/navigation/EnforceNavigateTo.scala +++ b/integration_test/src/it/scala/org/scalawebtest/integration/navigation/EnforceNavigateTo.scala @@ -9,7 +9,7 @@ class EnforceNavigateTo extends ScalaWebTestBaseSpec{ config.enforceNavigateTo() "A simple webpage loading content with JS" should "be correctly interpreted by HtmlUnit" in { - eventually(timeout(1 second)) { + eventually(timeout(3 seconds)) { container.text should include("Text loaded with JavaScript") } }