From 62e039f9404f69dfda893e8c306be092282a3160 Mon Sep 17 00:00:00 2001 From: Jorge Romero Date: Thu, 6 Aug 2020 14:47:30 +0200 Subject: [PATCH] fixes to make it work again it he box --- src/test/groovy/org/ods/e2e/ODSSpec.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/groovy/org/ods/e2e/ODSSpec.groovy b/src/test/groovy/org/ods/e2e/ODSSpec.groovy index 7a11205..4138e15 100644 --- a/src/test/groovy/org/ods/e2e/ODSSpec.groovy +++ b/src/test/groovy/org/ods/e2e/ODSSpec.groovy @@ -865,9 +865,12 @@ class ODSSpec extends BaseSpec { baseUrl = getJenkinsBaseUrl(project.key) and: 'Login again in jenkins as it has been rebooted' - waitFor('extremelySlow') { - doJenkinsLoginProcess() + if ($("body > div >h1").text()?.toLowerCase()?.contains('application is not available') != null) { + waitFor('extremelySlow') { + doJenkinsLoginProcess() + } } + def parameters = [environment: 'dev', version: 'WIP',] to JenkinsConsoleParametrizedBuildPage, project.key, releaseManagerPipelineJob fillData(parameters)