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 c39b001ca..6a7434a81 100644 --- a/src/integration-test/groovy/au/org/ala/fieldcapture/RlpReportingSpec.groovy +++ b/src/integration-test/groovy/au/org/ala/fieldcapture/RlpReportingSpec.groovy @@ -728,9 +728,8 @@ class RlpReportingSpec extends StubbedCasSpec { catch (ElementClickInterceptedException e) { println "ElementClickInterceptedException: $it" e.printStackTrace() - // This can happen if the section is not visible, so we need to scroll it into view - interact { - moveToElement(notApplicableCheckbox(it)) + if (overDeliveryModal.displayed) { + okBootbox() } markAsNotApplicable(it) }