Skip to content

Commit 944fba3

Browse files
committed
Fixing functional test that started failing #3470
1 parent bb03b0f commit 944fba3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/integration-test/groovy/au/org/ala/fieldcapture/HelpLinksSpec.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HelpLinksSpec extends StubbedCasSpec {
2020

2121
when: "Clear the help links cache as other specs will have run caching zero links"
2222
to AdminClearCachePage
23-
homePageDocuments.click()
23+
clearHomePageDocuments()
2424
logout(browser)
2525

2626
then:

src/integration-test/groovy/pages/AdminClearCachePage.groovy

+8
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,12 @@ class AdminClearCachePage extends ReloadablePage {
5252
waitFor { hasBeenReloaded() }
5353
}
5454
}
55+
56+
void clearHomePageDocuments() {
57+
if (homePageDocuments.displayed) {
58+
homePageDocuments.click()
59+
60+
waitFor { hasBeenReloaded() }
61+
}
62+
}
5563
}

0 commit comments

Comments
 (0)