Skip to content

Commit

Permalink
Set full path to get this working for now. Once YamlTasks can determi…
Browse files Browse the repository at this point in the history
…ne a composer project's bin-dir, we can set PATH and remvove the "bin/"
  • Loading branch information
jonpugh committed Mar 26, 2020
1 parent 7b6c9fe commit c50a0fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ va/deploy/0-composer:

va/deploy/1-cache:
description: Rebuild Drupal caches
command: drush $DRUSH_ALIAS cr
command: bin/drush $DRUSH_ALIAS cr

va/deploy/2-update:
description: Run Drupal Update Hooks
command: drush $DRUSH_ALIAS updatedb --yes
command: bin/drush $DRUSH_ALIAS updatedb --yes

va/deploy/3-config:
- drush $DRUSH_ALIAS cim --yes
- drush $DRUSH_ALIAS cr
- bin/drush $DRUSH_ALIAS cim --yes
- bin/drush $DRUSH_ALIAS cr

va/tests/phpcs:
description: PHP CodeSniffer
Expand All @@ -37,7 +37,7 @@ va/tests/phplint:

va/tests/phpunit:
description: PHPUnit
command: phpunit --exclude-group disabled tests/phpunit --colors=always
command: bin/phpunit --exclude-group disabled tests/phpunit --colors=always

va/tests/accessibility:
description: accessibility test with axe-webdriverjs for 508 compliance
Expand All @@ -59,4 +59,4 @@ va/tests/behat:
description: Behat Tests
command: |
cd tests/behat
behat --colors
../../bin/behat --colors

6 comments on commit c50a0fa

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Task Failed: va/tests/phpcs
composer va:test:cs
sh: composer: command not found
  • On: devshop.cms.va.gov
  • In: 0.002s

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Task Failed: va/tests/phplint
composer va:test:lint
sh: composer: command not found
  • On: devshop.cms.va.gov
  • In: 0.002s

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Task Failed: va/tests/phpunit
bin/phpunit --exclude-group disabled tests/phpunit --colors=always
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

Testing tests/phpunit
....E...F..................                                       27 / 27 (100%)

Time: 22.77 seconds, Memory: 158.00MB

There was 1 error:

1) tests\phpunit\AccessNodeEditTabs::testAccessNodeEditTab
Drupal\Core\Entity\EntityStorageException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: INSERT INTO {cache_config} (cid, expire, created, tags, checksum, data, serialized) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6) ON DUPLICATE KEY UPDATE cid = VALUES(cid), expire = VALUES(expire), created = VALUES(created), tags = VALUES(tags), checksum = VALUES(checksum), data = VALUES(data), serialized = VALUES(serialized); Array
(
    [:db_insert_placeholder_0] => last_write_timestamp_cache_config
    [:db_insert_placeholder_1] => -1
    [:db_insert_placeholder_2] => 1585189633.185
    [:db_insert_placeholder_3] => 
    [:db_insert_placeholder_4] => 0
    [:db_insert_placeholder_5] => d:1585189633.1860001;
    [:db_insert_placeholder_6] => 1
)


/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php:846
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:395
/var/aegir/projects/cms/pr1304/docroot/core/modules/user/tests/src/Traits/UserCreationTrait.php:192
/var/aegir/projects/cms/pr1304/docroot/vendor/weitzman/drupal-test-traits/src/Entity/UserCreationTrait.php:42
/var/aegir/projects/cms/pr1304/tests/phpunit/NodeEditTabsTest.php:20

Caused by
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: INSERT INTO {cache_config} (cid, expire, created, tags, checksum, data, serialized) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6) ON DUPLICATE KEY UPDATE cid = VALUES(cid), expire = VALUES(expire), created = VALUES(created), tags = VALUES(tags), checksum = VALUES(checksum), data = VALUES(data), serialized = VALUES(serialized); Array
(
    [:db_insert_placeholder_0] => last_write_timestamp_cache_config
    [:db_insert_placeholder_1] => -1
    [:db_insert_placeholder_2] => 1585189633.185
    [:db_insert_placeholder_3] => 
    [:db_insert_placeholder_4] => 0
    [:db_insert_placeholder_5] => d:1585189633.1860001;
    [:db_insert_placeholder_6] => 1
)


/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Connection.php:695
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Connection.php:659
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php:357
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Query/Upsert.php:106
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php:273
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php:193
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php:181
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/ChainedFastBackend.php:306
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/ChainedFastBackend.php:247
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php:35
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/Cache.php:148
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:575
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:448
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php:463
/var/aegir/projects/cms/pr1304/docroot/core/modules/user/src/Entity/User.php:117
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php:534
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php:728
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php:460
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php:837
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:395
/var/aegir/projects/cms/pr1304/docroot/core/modules/user/tests/src/Traits/UserCreationTrait.php:192
/var/aegir/projects/cms/pr1304/docroot/vendor/weitzman/drupal-test-traits/src/Entity/UserCreationTrait.php:42
/var/aegir/projects/cms/pr1304/tests/phpunit/NodeEditTabsTest.php:20

Caused by
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Statement.php:59
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Connection.php:634
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php:357
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Database/Query/Upsert.php:106
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php:273
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php:193
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php:181
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/ChainedFastBackend.php:306
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/ChainedFastBackend.php:247
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php:35
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Cache/Cache.php:148
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:575
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:448
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php:463
/var/aegir/projects/cms/pr1304/docroot/core/modules/user/src/Entity/User.php:117
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php:534
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php:728
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php:460
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php:837
/var/aegir/projects/cms/pr1304/docroot/core/lib/Drupal/Core/Entity/EntityBase.php:395
/var/aegir/projects/cms/pr1304/docroot/core/modules/user/tests/src/Traits/UserCreationTrait.php:192
/var/aegir/projects/cms/pr1304/docroot/vendor/weitzman/drupal-test-traits/src/Entity/UserCreationTrait.php:42
/var/aegir/projects/cms/pr1304/tests/phpunit/NodeEditTabsTest.php:20

--

There was 1 failure:

1) tests\phpunit\LoginPerformance::testLoginPerformance with data set #0 (2)
Operation took 6.205 seconds which is longer than the benchmark of 2 seconds.

Failed asserting that '6.205' is less than 2.

/var/aegir/projects/cms/pr1304/tests/phpunit/PerformanceLoginTest.php:47

ERRORS!
Tests: 27, Assertions: 64, Errors: 1, Failures: 1.

Operation took 0.097 seconds compared to the benchmark of 2 seconds.

Operation took 0.075 seconds compared to the benchmark of 2 seconds.

Operation took 0.201 seconds compared to the benchmark of 5 seconds.

Operation took 0.032 seconds compared to the benchmark of 5 seconds for type page.

Operation took 0.037 seconds compared to the benchmark of 5 seconds for type landing_page.
  • On: devshop.cms.va.gov
  • In: 22.844s

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Task Failed: va/tests/accessibility
composer va:test:accessibility
sh: composer: command not found
  • On: devshop.cms.va.gov
  • In: 0.002s

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Task Failed: va/tests/accessibility
composer va:test:accessibility
audited 183 packages in 1.149s
found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

> [email protected] test /var/aegir/projects/cms/pr1304
> node ./tests/accessibility/aXeAccessibilityCheck.js

!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov 1
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/sections  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/page  = 1
[ { id: 'duplicate-id',
    impact: 'minor',
    tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
    description: 'Ensures every id attribute value is unique',
    help: 'id attribute value must be unique',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/duplicate-id?application=webdriverjs',
    nodes: [ [Object], [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/landing_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/documentation_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/event  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/health_care_local_facility  = 1
[ { id: 'label',
    impact: 'critical',
    tags:
     [ 'cat.forms',
       'wcag2a',
       'wcag332',
       'wcag131',
       'section508',
       'section508.22.n' ],
    description: 'Ensures every form element has a label',
    help: 'Form elements must have labels',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/label?application=webdriverjs',
    nodes:
     [ [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/health_care_region_detail_page  = 1
[ { id: 'duplicate-id',
    impact: 'minor',
    tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
    description: 'Ensures every id attribute value is unique',
    help: 'id attribute value must be unique',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/duplicate-id?application=webdriverjs',
    nodes: [ [Object], [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/health_care_region_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/office  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/outreach_asset  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/person_profile  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/press_release  = 1
[ { id: 'aria-allowed-attr',
    impact: 'critical',
    tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
    description: 'Ensures ARIA attributes are allowed for an element\'s role',
    help: 'Elements must only use allowed ARIA attributes',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/aria-allowed-attr?application=webdriverjs',
    nodes: [ [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/regional_health_care_service_des  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/news_story  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr1304.ci.cms.va.gov/node/add/support_service  = 0
[]
!!!  VIOLATION TYPES FOUND: 5 PROCESS EXITED WITH CODE 1  !!!
> npm install --only=production
> npm test
Thu, 26 Mar 2020 02:27:46 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:44:14
Thu, 26 Mar 2020 02:27:49 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:56:42
Failed to inject axe-core into one of the iframes!
Failed to inject axe-core into one of the iframes!
npm ERR! Test failed.  See above for more details.
Script npm test handling the va:test:accessibility event returned with error code 1
  • On: devshop.cms.va.gov
  • In: 01:18

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Task Failed: va/tests/behat
cd tests/behat
../../bin/behat --colors
@api
Feature: Access control
  In order to protect my site and its content
  As a site owner
  I want to control access with user roles and permissions.

  @dst @access
  Scenario: User roles                            # drupal-spec-tool/access_control.feature:8
    Then exactly the following roles should exist # Acquia\DrupalSpecTool\Context\AccessControlContext::assertRolesExist()
      | Name                            | Machine name                  |
      | Administrator                   | administrator                 |
      | Anonymous user                  | anonymous                     |
      | Authenticated user              | authenticated                 |
      | Content API Consumer            | content_api_consumer          |
      | Content editor                  | content_editor                |
      | Content publisher               | content_publisher             |
      | Content reviewer                | content_reviewer              |
      | User admin                      | admnistrator_users            |
      | Redirect admin                  | redirect_administrator        |
      | Content admin                   | content_admin                 |
      | Content creator - Benefits hubs | content_creator_benefits_hubs |
      | Content creator - VAMC          | vamc_content_creator          |

@api
Feature: Content model bundles
  In order to enter structured content into my site
  As a content editor
  I want to have content entity bundles that reflect my content model.

  @dst @content_type @dstbundles
  Scenario: Bundles                                                     # drupal-spec-tool/content_model_bundles.feature:8
    Then exactly the following content entity type bundles should exist # CustomDrupal\ContentModelContextCustom::assertBundles()
      | Name                                            | Machine name                     | Type              | Description                                                                                                                                                                                                                               |
      | Benefits detail page                            | page                             | Content type      | These pages hold all of the benefits overview content, such the detail pages linked to from va.gov/disability, va.gov/health-care, and va.gov/education.                                                                                  |
      | Benefits hub landing page                       | landing_page                     | Content type      | A special page for top-level Benefits content with its own one-off layout and content.                                                                                                                                                    |
      | Detail Page                                     | health_care_region_detail_page   | Content type      | For static pages where there's not another content type already available.                                                                                                                                                                |
      | Documentation page                              | documentation_page               | Content type      | Help pages VA.gov CMS editors.                                                                                                                                                                                                            |
      | Event                                           | event                            | Content type      | For online or in-person events like support groups, outreach events, public lectures, and more.                                                                                                                                           |
      | Event listing                                   | event_listing                    | Content type      | A listing of events.                                                                                                                                                                                                                      |
      | News release                                    | press_release                    | Content type      | Announcements directed at members of the media for the purpose of publicizing newsworthy events/happenings/programs at specific facilities or healthcare systems.                                                                         |
      | Office                                          | office                           | Content type      | An office at the VA, which may have contact info, events, news, and a leadership page in some cases.                                                                                                                                      |
      | Publication                                     | outreach_asset                   | Content type      | Contains a document, image, or video, for publication within a Publication library.                                                                                                                                                       |
      | Publication listing                             | publication_listing              | Content type      | This allows the listing of publication materials such as documents, videos, and images all in one place.                                                                                                                                  |
      | Staff profile                                   | person_profile                   | Content type      | Profiles of staff members for display in various places around the site.                                                                                                                                                                  |
      | Story                                           | news_story                       | Content type      | Community stories highlight the role of a VA facility, program, or healthcare system in a Veteran's journey. They may be a case study of a specific patient, a description of a new or successful program, or a community-interest story. |
      | Support Service                                 | support_service                  | Content type      | Help desks, hotlines, etc, to be contextually placed alongside relevant content.                                                                                                                                                          |
      | VAMC system                                     | health_care_region_page          | Content type      | A VAMC system contains multiple VHA health facilities, including usually at least one VAMC, sometimes more.                                                                                                                               |
      | VAMC system banner alert with situation updates | full_width_banner_alert          | Content type      | A full-width alert that will be added to a VAMC system, or multiple VAMC systems.                                                                                                                                                         |
      | VAMC facility                                   | health_care_local_facility       | Content type      | A clinic or hospital within a VAMC system.                                                                                                                                                                                                |
      | VAMC facility health service                    | health_care_local_health_service | Content type      | A facility specific description of a health care service, always embedded within a VAMC system description.                                                                                                                               |
      | VAMC system health service                      | regional_health_care_service_des | Content type      | A description of a health service specific to a VAMC system.                                                                                                                                                                              |
      | VAMC system operating status                    | vamc_operating_status_and_alerts | Content type      | Create one of these pages for each VAMC system. Then you can add banner alerts and update facilities' operating status, all from one place.                                                                                               |
      | Alert                                           | alert                            | Custom block type | An alert box that can be added to individual pages.                                                                                                                                                                                       |
      | Promo                                           | promo                            | Custom block type | Promote a link with an image, title, and description.                                                                                                                                                                                     |
      | Document                                        | document                         | Media type        | A locally hosted document, such as a PDF.                                                                                                                                                                                                 |
      | Image                                           | image                            | Media type        | Locally hosted images.                                                                                                                                                                                                                    |
      | Video                                           | video                            | Media type        | A video hosted by YouTube, Vimeo, or some other provider.                                                                                                                                                                                 |
      | Accordion group                                 | collapsible_panel                | Paragraph type    | A group of accordions.                                                                                                                                                                                                                    |
      | Accordion Item                                  | collapsible_panel_item           | Paragraph type    | An individual accordion.                                                                                                                                                                                                                  |
      | Additional information                          | spanish_translation_summary      | Paragraph type    | Spanish summary to include a brief spanish-language summary of the content.                                                                                                                                                               |
      | Address                                         | address                          | Paragraph type    | An address block.                                                                                                                                                                                                                         |
      | Alert                                           | alert                            | Paragraph type    | A reusable or non-reusable alert, either "information status" or "warning status".                                                                                                                                                        |
      | Embedded image                                  | media                            | Paragraph type    | For adding an image inline                                                                                                                                                                                                                |
      | Expandable Text                                 | expandable_text                  | Paragraph type    | Text that expands upon click.                                                                                                                                                                                                             |
      | Link teaser                                     | link_teaser                      | Paragraph type    | A link followed by a description. For building inline "menus" of content.                                                                                                                                                                 |
      | Link to file or video                           | downloadable_file                | Paragraph type    | For image or document downloads.                                                                                                                                                                                                          |
      | List of link teasers                            | list_of_link_teasers             | Paragraph type    | A paragraph that contains only one type of paragraph: Link teaser.                                                                                                                                                                        |
      | Number callout                                  | number_callout                   | Paragraph type    | Number callouts can be used in the context of a question & answer, where the answer can be summarized in a short phrase that is number-oriented.                                                                                          |
      | Process list                                    | process                          | Paragraph type    | An ordered list (1, 2, 3, 4, N) of steps in a process.                                                                                                                                                                                    |
      | Q&A                                             | q_a                              | Paragraph type    | Question and Answer                                                                                                                                                                                                                       |
      | Q&A Section                                     | q_a_section                      | Paragraph type    | For content formatted as a series of questions and answers. Use this (instead of WYSIWYG) for better accessibility and easy rearranging.                                                                                                  |
      | React Widget                                    | react_widget                     | Paragraph type    | Advanced editors can use this to place react widgets (like a form) on the page.                                                                                                                                                           |
      | Staff profile                                   | staff_profile                    | Paragraph type    | Add a profile of a staff person.                                                                                                                                                                                                          |
      | Starred Horizontal Rule                         | starred_horizontal_rule          | Paragraph type    | Current an inactive paragraph type, not enabled within any fields.                                                                                                                                                                        |
      | Table                                           | table                            | Paragraph type    | Add an HTML table with rows and columns.                                                                                                                                                                                                  |
      | VAMC facility service (non-healthcare service)  | health_care_local_facility_servi | Paragraph type    | A service available at a specific health care facility, like Parking, or Chaplaincy.                                                                                                                                                      |
      | WYSIWYG                                         | wysiwyg                          | Paragraph type    | An open-ended text field.                                                                                                                                                                                                                 |
      | Situation update                                | situation_update                 | Paragraph type    | A time-sensitive, added to a banner alert, and displayed on VAMC operating status pages.                                                                                                                                                  |
      | Sections                                        | administration                   | Vocabulary        | Represents a hierarchy of the VA, partly for governance purposes.                                                                                                                                                                         |
      | Type of Redirect                                | type_of_redirect                 | Vocabulary        |                                                                                                                                                                                                                                           |
      | VHA health service taxonomy                     | health_care_service_taxonomy     | Vocabulary        | Single source of truth for health service names, descriptions, patient-friendly names, and common conditions.                                                                                                                             |
      | Health services listing                         | health_services_listing          | Content type      | A listing of health services.                                                                                                                                                                                                             |
      | Locations listing                               | locations_listing                | Content type      | A listing of locations.                                                                                                                                                                                                                   |
      | News releases listing                           | press_releases_listing           | Content type      | A listing of press releases.                                                                                                                                                                                                              |
      | Story listing                                   | story_listing                    | Content type      | A listing of stories.                                                                                                                                                                                                                     |
      | Leadership listing                              | leadership_listing               | Content type      | A listing of staff members.                                                                                                                                                                                                               |

@api
Feature: Content model fields
  In order to enter structured content into my site
  As a content editor
  I want to have fields that reflect my content model.

  @dst @field_type @dstfields
  Scenario: Fields                                 # drupal-spec-tool/content_model_fields.feature:8
    Then exactly the following fields should exist # CustomDrupal\ContentModelContextCustom::assertFields()
      | Type              | Bundle                                          | Field label                                                                | Machine name                     | Field type                 | Required | Cardinality | Form widget                                    | Translatable |
      | Content type      | Benefits detail page                            | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Benefits detail page                            | Alert                                                                      | field_alert                      | Entity reference           |          | 1           | Entity browser                                 |              |
      | Content type      | Benefits detail page                            | Main content                                                               | field_content_block              | Entity reference revisions | Required | Unlimited   | Paragraphs Browser EXPERIMENTAL                |              |
      | Content type      | Benefits detail page                            | Meta description                                                           | field_description                | Text (plain)               | Required | 1           | Textfield with counter                         |              |
      | Content type      | Benefits detail page                            | Featured content                                                           | field_featured_content           | Entity reference revisions |          | Unlimited   | Paragraphs EXPERIMENTAL                        |              |
      | Content type      | Benefits detail page                            | Intro text                                                                 | field_intro_text                 | Text (plain, long)         | Required | 1           | Textarea (multiple rows) with counter          |              |
      | Content type      | Benefits detail page                            | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        |              |
      | Content type      | Benefits detail page                            | Meta title tag                                                             | field_meta_title                 | Text (plain)               | Required | 1           | Textfield with counter                         |              |
      | Content type      | Benefits detail page                            | Page last built                                                            | field_page_last_built            | Date                       |          | 1           | -- Disabled --                                 |              |
      | Content type      | Benefits detail page                            | Plain Language Certification Date                                          | field_plainlanguage_date         | Date                       |          | 1           | Date and time                                  |              |
      | Content type      | Benefits detail page                            | Related Links                                                              | field_related_links              | Entity reference revisions |          | 1           | Paragraphs EXPERIMENTAL                        |              |
      | Content type      | Benefits hub landing page                       | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    |              |
      | Content type      | Benefits hub landing page                       | Alert                                                                      | field_alert                      | Entity reference           |          | 1           | Select list                                    | Translatable |
      | Content type      | Benefits hub landing page                       | Meta description                                                           | field_description                | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Benefits hub landing page                       | Home page hub label                                                        | field_home_page_hub_label        | Text (plain)               |          | 1           | Textfield                                      |              |
      | Content type      | Benefits hub landing page                       | Intro text                                                                 | field_intro_text                 | Text (plain, long)         | Required | 1           | Text area (multiple rows)                      | Translatable |
      | Content type      | Benefits hub landing page                       | Links for non-veterans                                                     | field_links                      | Link                       |          | Unlimited   | Linkit                                         |              |
      | Content type      | Benefits hub landing page                       | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Benefits hub landing page                       | Meta title tag                                                             | field_meta_title                 | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Benefits hub landing page                       | Page last built                                                            | field_page_last_built            | Date                       |          | 1           | Date and time                                  | Translatable |
      | Content type      | Benefits hub landing page                       | Plain language Certified Date                                              | field_plainlanguage_date         | Date                       |          | 1           | Date and time                                  | Translatable |
      | Content type      | Benefits hub landing page                       | Promo                                                                      | field_promo                      | Entity reference           |          | 1           | Select list                                    |              |
      | Content type      | Benefits hub landing page                       | Related Links                                                              | field_related_links              | Entity reference revisions |          | 1           | Paragraphs Classic                             | Translatable |
      | Content type      | Benefits hub landing page                       | Spokes                                                                     | field_spokes                     | Entity reference revisions | Required | 4           | Paragraphs EXPERIMENTAL                        |              |
      | Content type      | Benefits hub landing page                       | Support Services                                                           | field_support_services           | Entity reference           |          | Unlimited   | Inline entity form - Complex                   |              |
      | Content type      | Benefits hub landing page                       | Teaser text                                                                | field_teaser_text                | Text (plain)               |          | 1           | Textfield with counter                         |              |
      | Content type      | Benefits hub landing page                       | Hub Icon                                                                   | field_title_icon                 | List (text)                |          | 1           | Select list                                    |              |
      | Content type      | Detail Page                                     | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Detail Page                                     | Alert                                                                      | field_alert                      | Entity reference           |          | 1           | Select list                                    | Translatable |
      | Content type      | Detail Page                                     | Main content                                                               | field_content_block              | Entity reference revisions |          | Unlimited   | Paragraphs Browser EXPERIMENTAL                | Translatable |
      | Content type      | Detail Page                                     | Meta description                                                           | field_description                | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Detail Page                                     | Featured content                                                           | field_featured_content           | Entity reference revisions |          | Unlimited   | Paragraphs EXPERIMENTAL                        | Translatable |
      | Content type      | Detail Page                                     | Intro text                                                                 | field_intro_text                 | Text (plain, long)         | Required | 1           | Textarea (multiple rows) with counter          | Translatable |
      | Content type      | Detail Page                                     | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Detail Page                                     | Meta title tag                                                             | field_meta_title                 | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Detail Page                                     | Related office or health care system                                       | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Detail Page                                     | Related Links                                                              | field_related_links              | Entity reference revisions |          | 1           | Paragraphs EXPERIMENTAL                        | Translatable |
      | Content type      | Detail Page                                     | Generate a table of contents from major headings                           | field_table_of_contents_boolean  | Boolean                    |          | 1           | Single on/off checkbox                         |              |
      | Content type      | Documentation page                              | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Documentation page                              | Main content                                                               | field_content_block              | Entity reference revisions |          | Unlimited   | Paragraphs Browser EXPERIMENTAL                | Translatable |
      | Content type      | Event                                           | Additional information about registration                                  | field_additional_information_abo | Text (formatted, long)     |          | 1           | Text area (multiple rows)                      |              |
      | Content type      | Event                                           | Address                                                                    | field_address                    | Address                    |          | 1           | Address                                        |              |
      | Content type      | Event                                           | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Event                                           | Full event description                                                     | field_body                       | Text (formatted, long)     |          | 1           | Text area (multiple rows)                      |              |
      | Content type      | Event                                           | Date and time                                                              | field_date                       | Date range                 |          | 1           | Date and time range                            |              |
      | Content type      | Event                                           | Meta description                                                           | field_description                | Text (plain)               |          | 1           | Textfield                                      | Translatable |
      | Content type      | Event                                           | Cost                                                                       | field_event_cost                 | Text (plain)               |          | 1           | Textfield with counter                         |              |
      | Content type      | Event                                           | URL Link Label                                                             | field_event_cta                  | List (text)                |          | 1           | Select list                                    |              |
      | Content type      | Event                                           | Registration required                                                      | field_event_registrationrequired | Boolean                    |          | 1           | Single on/off checkbox                         |              |
      | Content type      | Event                                           | Facility location                                                          | field_facility_location          | Entity reference           |          | 1           | Select list                                    |              |
      | Content type      | Event                                           | Featured                                                                   | field_featured                   | Boolean                    |          | 1           | Single on/off checkbox                         | Translatable |
      | Content type      | Event                                           | URL of an external page or registration link for this event                | field_link                       | Link                       |          | 1           | Link                                           | Translatable |
      | Content type      | Event                                           | A human-readable label for the event location.                             | field_location_humanreadable     | Text (plain)               |          | 1           | Textfield                                      |              |
      | Content type      | Event                                           | Location type                                                              | field_location_type              | List (text)                |          | 1           | Select list                                    |              |
      | Content type      | Event                                           | Image                                                                      | field_media                      | Entity reference           |          | 1           | Media library                                  | Translatable |
      | Content type      | Event                                           | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Event                                           | Event listing                                                              | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Event                                           | Event listing                                                              | field_listing                    | Entity reference           | Required | 1           | -- Disabled --                                 |              |
      | Content type      | Event                                           | Order                                                                      | field_order                      | List (integer)             |          | 1           | Select list                                    |              |
      | Content type      | Event                                           | URL of an online event                                                     | field_url_of_an_online_event     | Link                       |          | 1           | Linkit                                         |              |
      | Content type      | Event listing                                   | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Event listing                                   | Meta description                                                           | field_description                | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Event listing                                   | Intro text                                                                 | field_intro_text                 | Text (plain, long)         | Required | 1           | Text area (multiple rows)                      | Translatable |
      | Content type      | Event listing                                   | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Event listing                                   | Meta title tag                                                             | field_meta_title                 | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Event listing                                   | Related office or health care system                                       | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | News release                                    | Location                                                                   | field_address                    | Address                    | Required | 1           | Address                                        | Translatable |
      | Content type      | News release                                    | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | News release                                    | Introduction                                                               | field_intro_text                 | Text (plain, long)         | Required | 1           | Textarea (multiple rows) with counter          | Translatable |
      | Content type      | News release                                    | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | News release                                    | Healthcare system or related office                                        | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | News release                                    | PDF of Press Release                                                       | field_pdf_version                | Entity reference           |          | 1           | Media library                                  |              |
      | Content type      | News release                                    | Media Contact(s)                                                           | field_press_release_contact      | Entity reference           |          | Unlimited   | Autocomplete                                   | Translatable |
      | Content type      | News release                                    | Media assets                                                               | field_press_release_downloads    | Entity reference           |          | Unlimited   | Media library                                  |              |
      | Content type      | News release                                    | Full text of the Press Release                                             | field_press_release_fulltext     | Text (formatted, long)     | Required | 1           | Text area (multiple rows)                      |              |
      | Content type      | News release                                    | Release date                                                               | field_release_date               | Date                       |          | 1           | Date and time                                  |              |
      | Content type      | News release                                    | News releases listing                                                      | field_listing                    | Entity reference           | Required | 1           | -- Disabled --                                 | Translatable |
      | Content type      | Office                                          | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Office                                          | Body                                                                       | field_body                       | Text (formatted, long)     |          | 1           | Text area (multiple rows)                      | Translatable |
      | Content type      | Office                                          | Meta description                                                           | field_description                | Text (plain)               |          | 1           | Textfield                                      | Translatable |
      | Content type      | Office                                          | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Office                                          | Meta title tag                                                             | field_meta_title                 | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Publication                                     | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Publication                                     | Related Benefits                                                           | field_benefits                   | List (text)                |          | 1           | Select list                                    |              |
      | Content type      | Publication                                     | Meta description                                                           | field_description                | Text (plain)               |          | 1           | Textfield                                      | Translatable |
      | Content type      | Publication                                     | Format                                                                     | field_format                     | List (text)                | Required | 1           | Select list                                    |              |
      | Content type      | Publication                                     | File or video                                                              | field_media                      | Entity reference           |          | 1           | Media library                                  |              |
      | Content type      | Publication                                     | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Publication                                     | Healthcare system or related office                                        | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Publication                                     | Publication listing                                                        | field_listing                    | Entity reference           | Required | 1           | -- Disabled --                                 | Translatable |
      | Content type      | Publication listing                             | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Publication listing                             | Meta description                                                           | field_description                | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Publication listing                             | Intro text                                                                 | field_intro_text                 | Text (plain, long)         | Required | 1           | Text area (multiple rows)                      | Translatable |
      | Content type      | Publication listing                             | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Publication listing                             | Meta title tag                                                             | field_meta_title                 | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | Publication listing                             | Related office or health care system                                       | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Staff profile                                   | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Staff profile                                   | Bio                                                                        | field_body                       | Text (formatted, long)     |          | 1           | Text area (multiple rows)                      | Translatable |
      | Content type      | Staff profile                                   | Complete Biography                                                         | field_complete_biography         | File                       |          | 1           | File                                           |              |
      | Content type      | Staff profile                                   | Meta description                                                           | field_description                | Text (plain)               |          | 1           | Textfield                                      | Translatable |
      | Content type      | Staff profile                                   | Email address                                                              | field_email_address              | Email                      |          | 1           | Email                                          |              |
      | Content type      | Staff profile                                   | Introduction                                                               | field_intro_text                 | Text (plain, long)         |          | 1           | Textarea (multiple rows) with counter          | Translatable |
      | Content type      | Staff profile                                   | Last name                                                                  | field_last_name                  | Text (plain)               |          | 1           | Textfield                                      |              |
      | Content type      | Staff profile                                   | Photo                                                                      | field_media                      | Entity reference           |          | 1           | Media library                                  | Translatable |
      | Content type      | Staff profile                                   | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Staff profile                                   | First name                                                                 | field_name_first                 | Text (plain)               |          | 1           | Textfield                                      |              |
      | Content type      | Staff profile                                   | Related office or health care region                                       | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Staff profile                                   | Phone Number                                                               | field_phone_number               | Telephone number           |          | 1           | Telephone number                               | Translatable |
      | Content type      | Staff profile                                   | High-resolution photo should be available for download by site visitors    | field_photo_allow_hires_download | Boolean                    |          | 1           | Single on/off checkbox                         |              |
      | Content type      | Staff profile                                   | Suffix                                                                     | field_suffix                     | Text (plain)               |          | 1           | Textfield                                      |              |
      | Content type      | Story                                           | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Story                                           | Author byline                                                              | field_author                     | Entity reference           |          | 1           | Autocomplete                                   |              |
      | Content type      | Story                                           | Featured                                                                   | field_featured                   | Boolean                    |          | 1           | Single on/off checkbox                         |              |
      | Content type      | Story                                           | Full text of Story                                                         | field_full_story                 | Text (formatted, long)     |          | 1           | Text area (multiple rows)                      |              |
      | Content type      | Story                                           | Image caption                                                              | field_image_caption              | Text (plain, long)         |          | 1           | Textarea (multiple rows) with counter          |              |
      | Content type      | Story                                           | Intro text                                                                 | field_intro_text                 | Text (plain, long)         | Required | 1           | Textarea (multiple rows) with counter          | Translatable |
      | Content type      | Story                                           | Image                                                                      | field_media                      | Entity reference           |          | 1           | Media library                                  | Translatable |
      | Content type      | Story                                           | Meta tags                                                                  | field_meta_tags                  | Meta tags                  |          | 1           | Advanced meta tags form                        | Translatable |
      | Content type      | Story                                           | Related office or health care region                                       | field_office                     | Entity reference           | Required | 1           | Select list                                    |              |
      | Content type      | Story                                           | Order                                                                      | field_order                      | List (integer)             |          | 1           | Select list                                    | Translatable |
      | Content type      | Story                                           | Story listing                                                              | field_listing                    | Entity reference           | Required | 1           | -- Disabled --                                 | Translatable |
      | Content type      | Support Service                                 | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Support Service                                 | Link                                                                       | field_link                       | Link                       |          | 1           | Link                                           |              |
      | Content type      | Support Service                                 | Related office                                                             | field_office                     | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | Support Service                                 | Page last built                                                            | field_page_last_built            | Date                       |          | 1           | Date and time                                  | Translatable |
      | Content type      | Support Service                                 | Phone Number                                                               | field_phone_number               | Telephone number           |          | 1           | Telephone number                               |              |
      | Content type      | VAMC facility                                   | Address                                                                    | field_address                    | Address                    |          | 1           | Address                                        | Translatable |
      | Content type      | VAMC facility                                   | Owner                                                                      | field_administration             | Entity reference           | Required | 1           | Select list                                    | Translatable |
      | Content type      | VAMC facility                                   | Meta description                                                           | field_description                | Text (plain)               | Required | 1           | Textfield with counter                         | Translatable |
      | Content type      | VAMC facility                                   | Email Subscription                                                         | field_email_subscription         | Link                       |          | 1           | Linkit                                         | Translatable |
      | Content type      | VAMC facility                                   | Facebook                                                                   | field_facebook                   | Link                       |          | 1           | Link                                           | Translatable |
      | Content type      | VAMC facility                                   | Classification                                                             | field_facility_classification    | List (text)                |          | 1           | Select list                                    |              |
      | Content type      | VAMC facility                                   | Hours                                                                      | field_facility_hours             | Table Field                |          | 1           | Table Field                                    |              |
      | Content type      | VAMC facility                                   | Facility Locator API ID                                                    | field_facility_locator_api_id    | Text (plain)               |          | 1           | Textfield                                      |              |
      | Content type      | VAMC facility                                   | Flickr                                                                     | field_flickr                     | Link                       |          | 1           | Link                                           | Translatable |
      | Content type      | VAMC facility                                   | Instagram                                                                  | field_instagram                  | Link                       |          | 1           | Link                                           | Translatable |
      | Content type      | VAMC facility                                   | Intro text                                                                 | field_intro_text                 | Text (plain, long)         |          | 1           | Textarea (multiple rows) with counter          | Translatable |
      | Content type      | VAMC facility                                   | Local health care service offerings                                        | field_local_health_care_service_ | Entity reference           |          | Unlimited   | -- Disabled --                                 | Translatable |
      | Content type      | VAMC facility                                   | Location services                                                          | field_location_services          | Entity reference revisions |          | Unlimited   | Paragraphs Classic                             |              |
      | Content type      | VAMC facility                                   | Main location                                                              | field_main_location              | Boolean                    |          | 1           | Single on/off checkbox                         |              |
      | Content type      | VAMC facility                                   | Image                                                                      | field_media                      | Entity reference           |          | 1           | Media library                                  | Translatable |
      | Content type      | VAMC facility                                   | Mental Health Phone                                                        | field_mental_health_phone        | Telephone number           |          | 1           | Telephone number              ... *(truncated)*
  • On: devshop.cms.va.gov
  • In: 05:05

Please sign in to comment.