Skip to content

Commit

Permalink
FOIA-407: Limited access fields for agency manager behat6.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychen-doj committed Oct 19, 2023
1 parent de14c30 commit 70e0d88
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tests/behat/features/AgencyComponent.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Feature: Agency Component Feature
| name | field_agency_abbreviation | description |format | language |
| Testing Agency | FTA | description |plain_text| en |
Given agency_component content:
| title | field_agency | field_rep_start | field_agency_comp_abbreviation |
| Test Agency Component 1 | Testing Agency | 2019-01-01 | ABCDEF |
| title | field_agency | field_rep_start | field_agency_comp_abbreviation | path_alias |
| Test Agency Component 1 | Testing Agency | 2019-01-01 | ABCDEF | /test-agency-component |
Given users:
| name | mail | roles | field_agency |
| Mini | mini@example.com | Administrator | Testing Agency |
Expand All @@ -37,7 +37,14 @@ Feature: Agency Component Feature
Scenario: Agency Manager can not edit agency compnent title
Given I am logged in as a user with the 'Agency Manager' role
And I wait 5 seconds
And I am at 'user'
And I am at '/test-agency-component'
And I wait 5 seconds
And I should see "Testing Agency"
And I click 'Testing Agency'
And I click 'Edit'
And I wait 5 seconds
Then the element "Agency Component Name" is "disabled"
And I should not see "Agency"
And I should not see "Is Centralized"
And I should not see "Abbreviation"
And I should not see "Submission Web"
And I should not see "REQUEST SUBMISSION FORM SETTINGS"
And I should not see "PROCESSING DATA"

0 comments on commit 70e0d88

Please sign in to comment.