Skip to content

Commit

Permalink
VACMS-16641: Move the tests into VBA Facility and use that content ty…
Browse files Browse the repository at this point in the history
…pe instead of Police Page
  • Loading branch information
Becapa authored and swirtSJW committed Feb 8, 2024
1 parent 8783c03 commit d21e9e7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,37 @@ Feature: CMS User may effectively interact with the VBA Facility form
Then the primary tab "View" should exist
Then the primary tab "Edit" should not exist

Scenario: Log in and try to archive a VBA Facility as a VBA editor
When I am logged in as a user with the roles "content_creator_vba, content_publisher"
And my workbench access sections are set to "1065"
When I am at "/node/4063/edit"
And I scroll to element "select#edit-moderation-state-0-state"
Then an option with the text "Archived" from dropdown with selector "select#edit-moderation-state-0-state" should not be visible
And I scroll to position "bottom"
And I click the "Unlock" link
And I click the "Confirm break lock" button

Scenario: Log in and archive a VBA Facility as an admin
Given I am logged in as a user with the "content_admin" role
# Columbia VA Regional Benefit Office
When I am at "/node/4063/edit"
And I scroll to element "select#edit-moderation-state-0-state"
Then an option with the text "Archived" from dropdown with selector "select#edit-moderation-state-0-state" should be visible

When I select option "Archived" from dropdown with selector "select#edit-moderation-state-0-state"
And I fill in field with selector "#edit-revision-log-0-value" with value "[Test Data] Revision log message."
And I save the node
Then I should see "has been updated."

When I click the edit tab
And I scroll to element "select#edit-moderation-state-0-state"
Then an option with the text "Published" from dropdown with selector "select#edit-moderation-state-0-state" should be visible

When I select option "Published" from dropdown with selector "select#edit-moderation-state-0-state"
And I fill in field with selector "#edit-revision-log-0-value" with value "[Test Data] Revision log message."
And I save the node
Then I should see "has been updated."

Scenario: Enable banner segment and ensure expected fields are present
Given I am logged in as a user with the "content_admin" role
And my workbench access sections are set to "1065"
Expand Down

0 comments on commit d21e9e7

Please sign in to comment.