From 8c3e2c2ad78aa858283e6c2e2ba35868e5ab701f Mon Sep 17 00:00:00 2001 From: chrisala Date: Mon, 11 Nov 2024 16:50:46 +1100 Subject: [PATCH] Trying to fix test #3368 --- .../au/org/ala/fieldcapture/RlpReportingSpec.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/integration-test/groovy/au/org/ala/fieldcapture/RlpReportingSpec.groovy b/src/integration-test/groovy/au/org/ala/fieldcapture/RlpReportingSpec.groovy index 2fb2f48bf..2aa17772c 100644 --- a/src/integration-test/groovy/au/org/ala/fieldcapture/RlpReportingSpec.groovy +++ b/src/integration-test/groovy/au/org/ala/fieldcapture/RlpReportingSpec.groovy @@ -721,15 +721,15 @@ class RlpReportingSpec extends StubbedCasSpec { getFormSections().each { // Mark all sections except the Weed Distribution Survey as not applicable if (isOptional(it) && it != 'koRLP_-_Weed_distribution_survey') { - Thread.sleep(500) try { - interact { - moveToElement(notApplicableCheckbox(it)) - } markAsNotApplicable(it) } catch (ElementClickInterceptedException e) { println "ElementClickInterceptedException: $it" + String section = it + interact { + moveToElement(notApplicableCheckbox(section)) + } e.printStackTrace() println $('ul') $('ul').parent().each { a -> println a.attr('innerHtml') }