-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DNM: VACMS-13188 Set Beneficiaries to Unlimited Cardinality (#16245)
* VACMS-13188: Changes cardinality to unlimited for field_audience_beneficiares. * VACMS-13188: Stubs out new cypress test for R&S content type. * VACMS-13188: Adds checkbox commands to cypress. * VACMS-13188: Updates R&S detail page test with tags validation. --------- Co-authored-by: Daniel Sasser <[email protected]> Co-authored-by: Jill Adams <[email protected]>
- Loading branch information
1 parent
74246a5
commit cbd6682
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/cypress/integration/features/content_type/support_resources_detail_page.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@content_type__support_resources_detail_page | ||
Feature: Content Type: Resources and Support Detail Page | ||
|
||
Scenario: Validate Tags with attention to conditional fields | ||
Given I am logged in as a user with the "content_admin" role | ||
When I am at "node/add/support_resources_detail_page" | ||
Then I should see "Tags" | ||
|
||
Given I select option "- None -" from dropdown "Audience" | ||
Then I should not see an element with the selector "#edit-field-tags-0-subform-field-audience-beneficiares-wrapper" | ||
And I should not see an element with the selector "#edit-field-tags-0-subform-field-non-beneficiares-wrapper" | ||
|
||
Given I select option "Beneficiaries" from dropdown "Audience" | ||
When I check all checkboxes within "#edit-field-tags-0-subform-field-audience-beneficiares" | ||
Then I should see an element with the selector "#edit-field-tags-0-subform-field-audience-beneficiares-wrapper" | ||
And I should not see an element with the selector "#edit-field-tags-0-subform-field-non-beneficiares-wrapper" | ||
|
||
Given I select option "Non-beneficiaries" from dropdown "Audience" | ||
Then I should not see an element with the selector "#edit-field-tags-0-subform-field-audience-beneficiares-wrapper" | ||
And I should see an element with the selector "#edit-field-tags-0-subform-field-non-beneficiares-wrapper" | ||
|
||
Given I check all checkboxes within "#edit-field-tags-0-subform-field-topics--wrapper" | ||
Then an element with the selector "#edit-field-tags-0-subform-field-audience-selection" should be disabled | ||
|
||
Given I uncheck the first checkbox within "#edit-field-tags-0-subform-field-topics--wrapper" | ||
Then an element with the selector "#edit-field-tags-0-subform-field-audience-selection" should not be disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters