Skip to content

Commit

Permalink
Test updates #2880
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Aug 20, 2024
1 parent e8a423c commit 05f1257
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class CreateOrEditOrganisationSpec extends StubbedCasSpec {
at CreateOrganisation
}
when:
details.abnStatus = "Active"
details.abn = "51824753556"
waitFor {details.prePopulateABN.displayed}
details.prePopulateABN.click()
Expand Down Expand Up @@ -66,12 +67,8 @@ class CreateOrEditOrganisationSpec extends StubbedCasSpec {

then:
waitFor {at EditOrganisation}
and: "The organisation name is not editable by normal users"
details.isNameReadOnly() == true

when:
details.abn = "66666666666"
waitFor {details.prePopulateABN.displayed}
details.description = "Test Organisation Description test"
details.save()

Expand All @@ -83,8 +80,6 @@ class CreateOrEditOrganisationSpec extends StubbedCasSpec {

then:
orgDescription.text() == "Test Organisation Description test"
waitFor {orgAbn.displayed }
orgAbn.text() == "66666666666"
}


Expand All @@ -102,6 +97,7 @@ class CreateOrEditOrganisationSpec extends StubbedCasSpec {
waitFor 20, {at EditOrganisation}

when:
details.abnStatus = "Active"
details.abn = "98434926368"
waitFor {details.prePopulateABN.displayed}
details.prePopulateABN.click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import geb.module.FormElement

class AddOrEditOrganisation extends Module {
static content = {
abnStatus { $('#abnStatus') }
name { $('#name') }
acronym{$('#acronym')}
abn{$('#abnSelector')}
Expand Down
5 changes: 4 additions & 1 deletion src/integration-test/resources/dataset_mu/loadDataSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ createProgram({name:'Regional Land Partnerships', parent: null, programId:'test_

createOrganisation({
name:'Test Organisation',
abnStatus:'Active',
organisationId:'test_organisation',
status:'active', abn:'12345678901',
url:'http://www.ala.org.au',
acronym:'TSTORG'
acronym:'TSTORG',
state: "ACT",
postcode: 2600
})

createMu({name:'test mu', managementUnitId:"test_mu",managementUnitSiteId:'test_site_1'});
Expand Down

0 comments on commit 05f1257

Please sign in to comment.