Skip to content

Commit

Permalink
VACMS-14136: Adds cypress test for vet center facility service name c…
Browse files Browse the repository at this point in the history
…hange
  • Loading branch information
Becapa committed Feb 26, 2024
1 parent cb49e42 commit 7e72964
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@content_type__vet_center_facility_health_servi
Feature: CMS Users may effectively interact with the Vet Center - Facility Service form
In order to confirm that cms users have access to the necessary functionality
As anyone involved in the project
I need to have certain functionality available

Scenario: Editors should not be able to rename a Vet Center - Facility Service
Given I am logged in as a user with the roles "content_creator_vet_center, content_publisher, content_editor, content_admin"
# Escanaba Vet Center
And my workbench access sections are set to "392"
# Escanaba Vet Center - Telehealth
When I am at "node/17927/edit"
And an element with the selector 'select[data-drupal-selector^="edit-field-service-name-and-descripti"]' should be disabled
Then I scroll to position "bottom"
And I click the "Unlock" link
And I click the "Confirm break lock" button

Scenario: Administrators should be able to rename a Vet Center - Facility Service
Given I am logged in as a user with the "administrator" role
# Escanaba Vet Center - Telehealth
When I am at "node/17927"
Then I should see "Escanaba Vet Center - Telehealth"

Then I click the edit tab
Then an element with the selector 'select[data-drupal-selector^="edit-field-office"]' should not be disabled
And an element with the selector 'select[data-drupal-selector^="edit-field-service-name-and-descripti"]' should not be disabled

# Duluth Vet Center
Then I select option '3751' from dropdown with selector 'select[data-drupal-selector^="edit-field-office"]'
# Women Veteran Care
And I select option '57' from dropdown with selector 'select[data-drupal-selector^="edit-field-service-name-and-descripti"]'
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 "Duluth Vet Center - Women Veteran care"

0 comments on commit 7e72964

Please sign in to comment.