Skip to content

Commit

Permalink
VACMS-14955: Adds test for add new downloadable resource button style…
Browse files Browse the repository at this point in the history
… change when using Entity Browser.
  • Loading branch information
dsasser committed Jan 4, 2024
1 parent c8b945e commit 4886594
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ Feature: Content Type: Campaign Landing Page
Then I should see an element with the selector "#edit-field-clp-resources-header-0-value"
And I can fill in field with selector "#edit-field-clp-resources-header-0-value" with fake text
And I can fill in field with selector "#edit-field-clp-resources-intro-text-0-value" with fake text

# Test the 'Add new Downloadable resource' button
When I click the "Add new Downloadable resource" button
Then I can fill in "Name" field with fake text
And I can fill in "External File URL" field with fake text
And I can fill in "Description" field with fake text
# TODO: Test section drop-down for this segment

# Test the 'Add existing Downloadable resource' button
When I click the "Cancel" button
Then I click the "Add existing Downloadable resource" button
And I should see "Select Downloadable resource"
# TODO: Test clicking the "Select Downloadable resource" button and modal
And I click the "Add existing Downloadable resource" button
And I select 2 items from the "Select Downloadable resource" Entity Browser modal
Then I should not see an element with the selector ".ief-entity-submit.button[name='ief-reference-submit-field_clp_resources-form'"

# Test Downloadable resources CTA
And I should see "Downloadable resources cta"
And I click the "Add Call to action" button
And I fill in "Link" field with fake link
Expand Down

0 comments on commit 4886594

Please sign in to comment.