Skip to content

Commit

Permalink
Added functional test for #2134
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Jan 15, 2021
1 parent f30027e commit 0447cbb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/views/project/meriPlan/_relatedProjects.gsp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table class="table">
<table class="table related-projects">
<thead>
<tr class="header required">
<th class="required">${title ?: "Related Projects"}<fc:iconHelp>${helpText ?: "Please identify how this project relates to previous, or existing, bushfire recovery efforts. For closely related projects, please also indicate why this project complements and does not duplicate existing work"}</fc:iconHelp></th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class MERIPlanForBushfireNRMandStateSpec extends StubbedCasSpec {
meriPlan.asset = "Euastacus jagara (Freshwater crayfish)"
meriPlan.shortTermOutcomes[0].value( "Short term outcome 1")
meriPlan.projectDescription = "MERI plan edited description"
meriPlan.relatedProjects = "Related projects"
meriPlan.projectPartnerships[0].name = 'partner name'
meriPlan.projectPartnerships[0].partnership = 'partnership'
meriPlan.projectPartnerships[0].orgType = 'Trust'
Expand Down Expand Up @@ -65,6 +66,7 @@ class MERIPlanForBushfireNRMandStateSpec extends StubbedCasSpec {
meriPlan.asset == "Euastacus jagara (Freshwater crayfish)"
meriPlan.shortTermOutcomes[0].value() == "Short term outcome 1"
meriPlan.projectDescription == "MERI plan edited description"
meriPlan.relatedProjects == "Related projects"
meriPlan.projectPartnerships[0].name == 'partner name'
meriPlan.projectPartnerships[0].partnership == 'partnership'
meriPlan.projectPartnerships[0].orgType == 'Trust'
Expand Down
2 changes: 2 additions & 0 deletions test/functional/pages/modules/EditableMeriPlan.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ class EditableMeriPlan extends Module {
otherActivity(required:false) { $('#activity-list input[type=text]') }
consultation(required:false) { $('.consultation textarea') }
communityEngagement(required:false) { $('.community-engagement textarea') }
relatedProjects(required:false) { $('.related-projects textarea') }

floatingSaveButton { $('#floating-save [data-bind*="saveProjectDetails"]') }
saveButton { $('.form-actions [data-bind*="saveProjectDetails"]').first() }
pdfButton { $('.btn[data-bind*="meriPlanPDF"').first() }
Expand Down
9 changes: 9 additions & 0 deletions test/functional/resources/dataset3/loadDataSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,15 @@ config.meriPlanContents = [
"explanation": " Please provide a short description of this project. The project description should be succinct and state what will be done and why it will be done. This project description will be visible on the project overview page in MERIT"
}
},
{
"template": "relatedProjects",
"model": {
"helpTextHeading":"A succinct overview of the project: (i) what will be done and (ii) why it will be done",
"maxSize": "1000",
"placeholder": "[Free text; limit response to 1000 characters (approx. 150 words)]",
"explanation": " Please provide a short description of this project. The project description should be succinct and state what will be done and why it will be done. This project description will be visible on the project overview page in MERIT"
}
},
{
"template": "projectPartnerships",
"model": {
Expand Down

0 comments on commit 0447cbb

Please sign in to comment.