From 78001bac06178fad3f60de7a89eef6bbaa767909 Mon Sep 17 00:00:00 2001 From: Martin Florian Date: Wed, 11 Jun 2025 12:35:19 +0000 Subject: [PATCH] Retry clearing webdrivers after frontend integration tests Fixes https://github.com/DACH-NY/cn-test-failures/issues/4437 Hard to say why this is timing out; let's attempt to fix via retry. [ci] Signed-off-by: Martin Florian --- .../tests/FrontendIntegrationTest.scala | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FrontendIntegrationTest.scala b/apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FrontendIntegrationTest.scala index 13e3f1d5de..5718e94767 100644 --- a/apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FrontendIntegrationTest.scala +++ b/apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FrontendIntegrationTest.scala @@ -308,19 +308,21 @@ trait FrontendTestCommon extends TestCommon with WebBrowser with CustomMatchers protected def clearWebDrivers(implicit ec: ExecutionContext) = { logger.info("Clearing web drivers") - webDrivers.values.toList.parTraverse { implicit webDriver => - Future { - // Reset session storage so we see the login window again. - // You cannot reset session storage of about:blank so - // we exclude this. - if (currentUrl != "about:blank") { - webDriver.getSessionStorage().clear() - eventually() { - webDriver.getSessionStorage().keySet.asScala shouldBe empty + eventually(60.seconds) { + webDrivers.values.toList.parTraverse { implicit webDriver => + Future { + // Reset session storage so we see the login window again. + // You cannot reset session storage of about:blank so + // we exclude this. + if (currentUrl != "about:blank") { + webDriver.getSessionStorage().clear() + eventually() { + webDriver.getSessionStorage().keySet.asScala shouldBe empty + } } } - } - }.futureValue + }.futureValue + } logger.info("Cleared web drivers") }