Skip to content

Commit

Permalink
FOIA-407: Behat create new user12.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychen-doj committed Oct 25, 2023
1 parent 4382175 commit 3ce78fc
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions tests/behat/features/AnnualFOIAReportData.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Feature: Annual FOIA Report Data Feature
And I check the box "ABCDEF"
When I press the 'Save and continue' button
Then I should see the following success messages:
| Success messages |
| ABCDEF - 2019 - Annual FOIA Report has been created. |
| Success messages |
| Annual FOIA Report Data ABCDEF - 2019 - Annual FOIA Report has been created. |

@api
Scenario: Agency Administrator can add Annual FOIA Reports
Expand All @@ -34,42 +34,45 @@ Feature: Annual FOIA Report Data Feature

@api @javascript
Scenario: Agency Administrator can save Annual FOIA Reports in all workflow states
Given agency terms:
| name | field_agency_abbreviation | description |format | language |
| Testing Agency | FTA | description |plain_text| en |
When I am logged in as a user with the 'Agency Administrator' role
And I am on "/node/add/annual_foia_report_data"
And for 'FOIA Annual Report Year' I enter '2023'
And I select "Federal Testing Agency" from "Agency"
And I wait 5 seconds
And I check the box "ABCDEF"
And I check the box "FTA"
When I press the 'Save and continue' button
Then I should see the following success messages:
| Success messages |
| ABCDEF - 2023 - Annual FOIA Report has been created. |
| Success messages |
| Annual FOIA Report Data FTA - 2023 - Annual FOIA Report has been created. |
And I select "Submitted to OIP" from "Change to"
And I press the 'Save' button
Then I should see the following success messages:
| Success messages |
| ABCDEF - 2023 - Annual FOIA Report has been updated. |
| Success messages |
| Annual FOIA Report Data FTA - 2023 - Annual FOIA Report has been updated. |
And save the current URL
And I click 'Edit'
And I select "Cleared" from "Change to"
And I press the 'Save' button
Then I should see the following success messages:
| Success messages |
| ABCDEF - 2023 - Annual FOIA Report has been updated. |
| Success messages |
| Annual FOIA Report Data FTA - 2023 - Annual FOIA Report has been updated. |
When I go to saved URL
And I click 'Edit'
And I select "Published" from "Change to"
And I press the 'Save' button
Then I should see the following success messages:
| Success messages |
| ABCDEF - 2023 - Annual FOIA Report has been updated. |
| Success messages |
| Annual FOIA Report Data FTA - 2023 - Annual FOIA Report has been updated. |
When I go to saved URL
And I click 'Edit'
And I select "Back with Agency" from "Change to"
And I press the 'Save' button
Then I should see the following success messages:
| Success messages |
| ABCDEF - 2023 - Annual FOIA Report has been updated. |
| Success messages |
| Annual FOIA Report Data FTA - 2023 - Annual FOIA Report has been updated. |

@api @javascript
Scenario: There is a button for adding placeholders for component data
Expand Down

0 comments on commit 3ce78fc

Please sign in to comment.