From 7e049b8b9c01ecd7d998b50f718897fe59eb3302 Mon Sep 17 00:00:00 2001 From: Christia Troyer Date: Wed, 20 Sep 2023 12:59:40 -0700 Subject: [PATCH] VACMS-15098: Language changes to Q&A Components --- config/sync/node.type.q_a.yml | 6 +++--- config/sync/paragraphs.paragraphs_type.q_a.yml | 12 ++++-------- config/sync/paragraphs.paragraphs_type.q_a_group.yml | 4 ++-- .../sync/paragraphs.paragraphs_type.q_a_section.yml | 5 ++--- ...raphs_browser.paragraphs_browser_type.content.yml | 3 ++- .../content_type/campaign_landing_page/faq.feature | 2 +- 6 files changed, 14 insertions(+), 18 deletions(-) diff --git a/config/sync/node.type.q_a.yml b/config/sync/node.type.q_a.yml index 28dfd0fadc..4322d4eadd 100644 --- a/config/sync/node.type.q_a.yml +++ b/config/sync/node.type.q_a.yml @@ -18,9 +18,9 @@ third_party_settings: node_title_help_text: title_help: 'Add a page title in a form of a question with sentence case capitalization. (See further guidelines)' menu_force: - menu_force: 0 - menu_force_parent: 0 -name: 'Q&A - single' + menu_force: false + menu_force_parent: false +name: 'Reusable Q&A' type: q_a description: 'Reusable content that answers a single question from Veterans or other beneficiaries. A Q&A may appear on its own or as part of an FAQ page.' help: 'Single Question and Answer.' diff --git a/config/sync/paragraphs.paragraphs_type.q_a.yml b/config/sync/paragraphs.paragraphs_type.q_a.yml index 6fc6d761c9..94b28dda02 100644 --- a/config/sync/paragraphs.paragraphs_type.q_a.yml +++ b/config/sync/paragraphs.paragraphs_type.q_a.yml @@ -1,14 +1,10 @@ uuid: 525c8535-c6fa-4e64-8824-82c889785a6a langcode: en status: true -dependencies: - module: - - paragraphs_browser -third_party_settings: - paragraphs_browser: - description: 'For content formatted as a series of questions and answers. Use this (instead of Paragraph) for better accessibility and easy rearranging.' +dependencies: { } id: q_a -label: 'Q&A' +label: 'Page-Specific Q&A' icon_uuid: null -description: 'Question and Answer' +icon_default: null +description: 'Page-specific (non-reusable) content formatted as a question and answer.' behavior_plugins: { } diff --git a/config/sync/paragraphs.paragraphs_type.q_a_group.yml b/config/sync/paragraphs.paragraphs_type.q_a_group.yml index caebac9476..ead553eefc 100644 --- a/config/sync/paragraphs.paragraphs_type.q_a_group.yml +++ b/config/sync/paragraphs.paragraphs_type.q_a_group.yml @@ -8,8 +8,8 @@ third_party_settings: paragraphs_browser: image_path: themes/custom/vagovclaro/images/screenshots/q-a-section.jpg id: q_a_group -label: 'Q&A group' +label: 'Reusable Q&A Group' icon_uuid: null icon_default: null -description: 'Create a new group of existing Q&As. Use this (instead of Rich text) for better accessibility and easy rearranging.' +description: 'Create a group using stored Q&As in the CMS. Use this for better accessibility and easy rearranging. ' behavior_plugins: { } diff --git a/config/sync/paragraphs.paragraphs_type.q_a_section.yml b/config/sync/paragraphs.paragraphs_type.q_a_section.yml index 9556153415..443d0d6c15 100644 --- a/config/sync/paragraphs.paragraphs_type.q_a_section.yml +++ b/config/sync/paragraphs.paragraphs_type.q_a_section.yml @@ -6,11 +6,10 @@ dependencies: - paragraphs_browser third_party_settings: paragraphs_browser: - description: 'For content formatted as a series of questions and answers. Use this (instead of Rich text) for better accessibility and easy rearranging.' image_path: themes/custom/vagovclaro/images/screenshots/q-a-section.jpg id: q_a_section -label: 'Q&A Section' +label: 'Page-Specific Q&A Group' icon_uuid: null icon_default: null -description: 'For content formatted as a series of questions and answers. Use this (instead of Rich text) for better accessibility and easy rearranging.' +description: 'Create a group of custom Q&As that provide information specific to the page content. Use this for better accessibility and easy rearranging.' behavior_plugins: { } diff --git a/config/sync/paragraphs_browser.paragraphs_browser_type.content.yml b/config/sync/paragraphs_browser.paragraphs_browser_type.content.yml index e59720d4b4..1c91e470ce 100644 --- a/config/sync/paragraphs_browser.paragraphs_browser_type.content.yml +++ b/config/sync/paragraphs_browser.paragraphs_browser_type.content.yml @@ -31,7 +31,6 @@ groups: weight: '9' map: wysiwyg: most_commonly_used - q_a_section: most_commonly_used expandable_text: collapsible_elements spanish_translation_summary: collapsible_elements process: other @@ -54,3 +53,5 @@ map: three_column_layout: layout lists_of_links: other centralized_content_descriptor: advanced + q_a_section: most_commonly_used + q_a_group: most_commonly_used diff --git a/tests/cypress/integration/features/content_type/campaign_landing_page/faq.feature b/tests/cypress/integration/features/content_type/campaign_landing_page/faq.feature index 574f95cc56..b175dfbbf4 100644 --- a/tests/cypress/integration/features/content_type/campaign_landing_page/faq.feature +++ b/tests/cypress/integration/features/content_type/campaign_landing_page/faq.feature @@ -7,7 +7,7 @@ Feature: Content Type: Campaign Landing Page And I click to collapse "Hero banner" And I click to expand "FAQs" And I enable the page segment - And I click the "Add Q&A" button + And I click the "Add Page-Specific Q&A" button Then I can fill in "Question" field with fake text And I can fill in "Text" field with fake text And I should see "Add a link to more FAQs"