Skip to content

Commit b19f1ab

Browse files
committed
Updated test to reflect change to homepage stat data #1794
1 parent 6feaa80 commit b19f1ab

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,15 @@ class HomeIndexPageSpec extends StubbedCasSpec {
3636
}
3737
and:
3838
box1[0].statTitle.text() == "THREATENED SPECIES STRATEGY"
39-
interact {
40-
moveToElement(box1[0].statTitle)
41-
}
42-
box1[0].statValue.text() =="3"
39+
box1[0].statValue.text() =="0"
4340
box1[0].statUnit.text() =="Projects"
4441
box1[0].statLabel.text() =="PROTECTING THREATENED SPECIES"
4542
box2[0].statTitle.text() == "NATIONAL LANDCARE PROGRAMME"
4643
box2[0].statValue.text() =="3"
4744
box2[0].statUnit.text() =="Projects"
4845
box2[0].statLabel.text() =="SUPPORTING SUSTAINABLE AGRICULTURE"
4946
box3[0].statTitle.text() == "NATIONAL LANDCARE PROGRAMME"
50-
box3[0].statValue.text() =="3"
47+
box3[0].statValue.text() =="0"
5148
box3[0].statUnit.text() =="Projects"
5249
box3[0].statLabel.text() =="THAT SUPPORT WORLD HERITAGE AREAS"
5350
box4[0].statTitle.text() == "NATIONAL LANDCARE PROGRAMME"

src/integration-test/resources/data_static_score/loadDataSet.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
print("This script is expected to be executed with a working directory containing this script");
22
print("Current working dir: "+process.cwd());
33
load('../data_common/loadMeritHub.js');
4+
load('../data_common/createInvestmentPriorities.js');
45
load('../data_common/insertData.js');
56
load('../data/settingDefaults.js')
67

@@ -52,6 +53,11 @@ createProject({name:'project 4', projectId:"project_4", programId:'program_1',ma
5253
],
5354
custom:{"details":
5455
{
56+
"assets": [
57+
{
58+
description:"ip2"
59+
}
60+
],
5561
"objectives":
5662
{
5763
"rows1": [

0 commit comments

Comments
 (0)