Skip to content

Commit d36a67f

Browse files
committed
Fixing functional test #3184
1 parent 10bdd66 commit d36a67f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package au.org.ala.fieldcapture
22

3+
import pages.AdminClearCachePage
34
import pages.AdminTools
4-
import pages.ProjectExplorer
55
import pages.ProjectIndex
66

77
class ProjectDashboardTabSpec extends StubbedCasSpec {
@@ -30,15 +30,12 @@ class ProjectDashboardTabSpec extends StubbedCasSpec {
3030
waitFor {$("#btnClearMetadataCache").displayed}
3131
$("#btnClearMetadataCache").click()
3232

33-
when:
34-
to AdminTools
35-
36-
then:
37-
at AdminTools
38-
39-
4033
when: "Reindex to ensure the project explorer will have predictable data"
34+
to AdminTools
4135
reindex()
36+
to AdminClearCachePage
37+
clearServiceListCache()
38+
4239
to ProjectIndex, projectId
4340

4441
then:
@@ -51,7 +48,7 @@ class ProjectDashboardTabSpec extends StubbedCasSpec {
5148
then:
5249
waitFor{ $("#services-dashboard").displayed }
5350
waitFor 20,{dashboard.size() == 3}
54-
def dashboardList = dashboard
51+
List dashboardList = dashboard
5552

5653
and:
5754
dashboardList[0].serviceTitle.text() == "Collecting, or synthesising baseline data"

0 commit comments

Comments
 (0)