Skip to content

Commit

Permalink
FOIA-407: Behat create new user11.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychen-doj committed Oct 25, 2023
1 parent 706aa07 commit 4382175
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/behat/features/AnnualFOIAReportData.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Feature: Annual FOIA Report Data Feature
Background:
Given agency terms:
| name | field_agency_abbreviation | description |format | language |
| Federal Testing Agency | FTA | description |plain_text| en |
| Federal Testing Agency | ABCDEF | description |plain_text| en |
Given agency_component content:
| title | field_agency | field_rep_start | field_agency_comp_abbreviation |
| est Agency Component 1T | Federal Testing Agency | 2019-01-01 | ABCDEF |
| Test Agency Component 1 | Federal Testing Agency | 2019-01-01 | ABCDEF |

@api @javascript
Scenario: Create an Annual FOIA Report Data node.
Expand All @@ -20,11 +20,11 @@ Feature: Annual FOIA Report Data Feature
And I wait 5 seconds
And for 'FOIA Annual Report Year' I enter '2019'
And for 'Date Prepared' I enter '08/22/2019'
And I check the box "FTA"
And I check the box "ABCDEF"
When I press the 'Save and continue' button
Then I should see the following success messages:
| Success messages |
| FTA - 2019 - Annual FOIA Report has been created. |
| Success messages |
| ABCDEF - 2019 - Annual FOIA Report has been created. |

@api
Scenario: Agency Administrator can add Annual FOIA Reports
Expand All @@ -39,45 +39,45 @@ Feature: Annual FOIA Report Data Feature
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 "FTA"
And I check the box "ABCDEF"
When I press the 'Save and continue' button
Then I should see the following success messages:
| Success messages |
| FTA - 2023 - Annual FOIA Report has been created. |
| ABCDEF - 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 |
| FTA - 2023 - Annual FOIA Report has been updated. |
| ABCDEF - 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 |
| FTA - 2023 - Annual FOIA Report has been updated. |
| ABCDEF - 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 |
| FTA - 2023 - Annual FOIA Report has been updated. |
| ABCDEF - 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 |
| FTA - 2023 - Annual FOIA Report has been updated. |
| ABCDEF - 2023 - Annual FOIA Report has been updated. |

@api @javascript
Scenario: There is a button for adding placeholders for component data
Given I am logged in as a user with the 'Agency Administrator' role
And I am on "/node/add/annual_foia_report_data"
And I select "Federal Testing Agency" from "Agency"
And I wait 5 seconds
And I check the box "FTA"
And I check the box "ABCDEF"
And for 'FOIA Annual Report Year' I enter '2019'
And I press the 'Save and continue' button
And I click 'IV. Exemption 3 Statutes'
Expand Down Expand Up @@ -113,7 +113,7 @@ Feature: Annual FOIA Report Data Feature
And I am at "node/add/annual_foia_report_data"
And I select "Federal Testing Agency" from "Agency"
And I wait 5 seconds
And I check the box "FTA"
And I check the box "ABCDEF"
And for 'FOIA Annual Report Year' I enter '2019'
And I press the 'Save and continue' button
And I wait 5 seconds
Expand Down

0 comments on commit 4382175

Please sign in to comment.