-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3031 from AtlasOfLivingAustralia/feature/issue3004
- Loading branch information
Showing
17 changed files
with
226 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ class AdminSpec extends StubbedCasSpec { | |
def "Admin Reports"() { | ||
setup: | ||
login([userId:'1', role:"ROLE_ADMIN", email:'[email protected]', firstName: "ALA", lastName:'Admin'], browser) | ||
String fromDate = "10/10/2020" | ||
String fromDate = "10/01/2020" | ||
String toDate = "10/10/2021" | ||
|
||
when: | ||
|
@@ -106,7 +106,29 @@ class AdminSpec extends StubbedCasSpec { | |
waitFor 20, { | ||
MimeMessage[] messages = greenMail.getReceivedMessages() | ||
messages?.length == 2 | ||
messages[0].getSubject() == "Your download is ready" | ||
messages[1].getSubject() == "Your download is ready" | ||
} | ||
|
||
when:"I clicked the Organisation Activities Report button" | ||
downloadOrgReport(fromDate, toDate) | ||
okBootbox() | ||
|
||
then: | ||
waitFor 20, { | ||
MimeMessage[] messages = greenMail.getReceivedMessages() | ||
messages?.length == 3 | ||
messages[2].getSubject() == "Your download is ready" | ||
} | ||
|
||
when:"I clicked the Organisation Report Status button" | ||
downloadOrgReportSummary(fromDate, toDate) | ||
okBootbox() | ||
|
||
then: | ||
waitFor 20, { | ||
MimeMessage[] messages = greenMail.getReceivedMessages() | ||
messages?.length == 4 | ||
messages[3].getSubject() == "Your download is ready" | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,7 +176,7 @@ class StubbedCasSpec extends FieldcaptureFunctionalTest { | |
} | ||
/** Convenience method to stub the login of a user with the CAS ROLE_ALA_ADMIN role */ | ||
def loginAsAlaAdmin(Browser browser) { | ||
login([userId:ALA_ADMIN_USER_ID, role:"ROLE_ADMIN", email: '[email protected]', firstName:"ALA", lastName:"Administrator"], browser) | ||
login([userId:ALA_ADMIN_USER_ID, role:"ROLE_ADMIN", userName: '[email protected]', email: '[email protected]', firstName:"ALA", lastName:"Administrator"], browser) | ||
} | ||
/** Convenience method to stub the login of a user no special roles */ | ||
def loginAsUser(String userId, Browser browser) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.