diff --git a/tests/cypress/integration/features/content_type/campaign_landing_page/clp_downloadable_resources.feature b/tests/cypress/integration/features/content_type/campaign_landing_page/clp_downloadable_resources.feature index 4ff5a7a23c..f8661c442c 100644 --- a/tests/cypress/integration/features/content_type/campaign_landing_page/clp_downloadable_resources.feature +++ b/tests/cypress/integration/features/content_type/campaign_landing_page/clp_downloadable_resources.feature @@ -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