Skip to content

Commit

Permalink
VACMS-1164: Adding wysiwyg replacement field to config. Step 1 of 4. (#…
Browse files Browse the repository at this point in the history
…1364)

* VACMS-1164: Adding wysiwyg replacement field to config. Step 1 of 4.

* VACMS-1164 Updating field model tests.

* VACMS-1164: Adding limited tag format wysiwyg.

* VACMS-1164: Updating wysiwyg format config.

* VACMS-1164: Updating phpunit role perm tests.

Co-authored-by: Steve Wirt <[email protected]>
  • Loading branch information
ethanteague and swirtSJW authored Apr 6, 2020
1 parent 99caa01 commit ad1b913
Show file tree
Hide file tree
Showing 14 changed files with 223 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/sync/core.entity_form_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.page.field_description
- field.field.node.page.field_featured_content
- field.field.node.page.field_intro_text
- field.field.node.page.field_intro_text_limited_html
- field.field.node.page.field_meta_tags
- field.field.node.page.field_meta_title
- field.field.node.page.field_page_last_built
Expand Down Expand Up @@ -290,6 +291,7 @@ content:
settings: { }
third_party_settings: { }
hidden:
field_intro_text_limited_html: true
field_page_last_built: true
panelizer: true
promote: true
Expand Down
2 changes: 2 additions & 0 deletions config/sync/core.entity_view_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.node.page.field_description
- field.field.node.page.field_featured_content
- field.field.node.page.field_intro_text
- field.field.node.page.field_intro_text_limited_html
- field.field.node.page.field_meta_tags
- field.field.node.page.field_meta_title
- field.field.node.page.field_page_last_built
Expand Down Expand Up @@ -116,6 +117,7 @@ content:
region: content
hidden:
field_administration: true
field_intro_text_limited_html: true
field_meta_tags: true
field_page_last_built: true
field_plainlanguage_date: true
Expand Down
2 changes: 2 additions & 0 deletions config/sync/core.entity_view_display.node.page.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.page.field_description
- field.field.node.page.field_featured_content
- field.field.node.page.field_intro_text
- field.field.node.page.field_intro_text_limited_html
- field.field.node.page.field_meta_tags
- field.field.node.page.field_meta_title
- field.field.node.page.field_page_last_built
Expand All @@ -36,6 +37,7 @@ hidden:
field_description: true
field_featured_content: true
field_intro_text: true
field_intro_text_limited_html: true
field_meta_tags: true
field_meta_title: true
field_page_last_built: true
Expand Down
40 changes: 40 additions & 0 deletions config/sync/editor.editor.rich_text_limited.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
uuid: 82d49673-a0b5-4c5a-ada7-1762fc50cba3
langcode: en
status: true
dependencies:
config:
- filter.format.rich_text_limited
module:
- ckeditor
format: rich_text_limited
editor: ckeditor
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Bold
- Italic
-
name: Links
items:
- DrupalLink
- DrupalUnlink
plugins:
language:
language_list: un
stylescombo:
styles: ''
drupallink:
linkit_enabled: true
linkit_profile: default
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 8fc7b58a-2305-4893-9448-26719ba58956
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_intro_text_limited_html
- node.type.page
module:
- text
id: node.page.field_intro_text_limited_html
field_name: field_intro_text_limited_html
entity_type: node
bundle: page
label: 'Intro text'
description: 'This is displayed directly beneath the title as an introduction to the page. This text should help a user figure out whether the information on this page is relevant to them, and should be written in the 2nd person. It will never be shown alongside the Description, so it''s ok for it to be duplicative of that information. This field supports the following HTML tags: <em> <strong> <br> <p> <a>'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
19 changes: 19 additions & 0 deletions config/sync/field.storage.node.field_intro_text_limited_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 022007a2-191e-4632-9f5e-c5952ca9e48d
langcode: en
status: true
dependencies:
module:
- node
- text
id: node.field_intro_text_limited_html
field_name: field_intro_text_limited_html
entity_type: node
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
126 changes: 126 additions & 0 deletions config/sync/filter.format.rich_text_limited.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
uuid: c3dde07b-29e7-485d-ada5-4a47bc0c5d21
langcode: en
status: true
dependencies:
module:
- blazy
- editor
- entity_embed
- linkit
- markdown
- media
- pathologic
_core:
default_config_hash: Mc8Hl-Ya14lrbMXaUx7Ybmv-18vtqE4lw2DpgNHPj-s
name: 'Rich Text Limited'
format: rich_text_limited
weight: 1
filters:
filter_align:
id: filter_align
provider: filter
status: false
weight: -43
settings: { }
filter_caption:
id: filter_caption
provider: filter
status: false
weight: -42
settings: { }
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: -49
settings: { }
editor_file_reference:
id: editor_file_reference
provider: editor
status: false
weight: -48
settings: { }
entity_embed:
id: entity_embed
provider: entity_embed
status: false
weight: -44
settings: { }
filter_html:
id: filter_html
provider: filter
status: true
weight: -50
settings:
allowed_html: '<em> <strong> <br> <p> <a>'
filter_html_help: true
filter_html_nofollow: false
filter_autop:
id: filter_autop
provider: filter
status: true
weight: -40
settings: { }
filter_html_escape:
id: filter_html_escape
provider: filter
status: false
weight: -41
settings: { }
filter_html_image_secure:
id: filter_html_image_secure
provider: filter
status: false
weight: -39
settings: { }
filter_url:
id: filter_url
provider: filter
status: true
weight: -47
settings:
filter_url_length: 72
linkit:
id: linkit
provider: linkit
status: true
weight: -45
settings:
title: true
markdown:
id: markdown
provider: markdown
status: false
weight: -38
settings:
markdown_library: php-markdown
filter_pathologic:
id: filter_pathologic
provider: pathologic
status: true
weight: -46
settings:
settings_source: local
local_settings:
protocol_style: path
local_paths: ''
blazy_filter:
id: blazy_filter
provider: blazy
status: false
weight: 3
settings:
filter_tags:
img: img
iframe: iframe
media_switch: ''
use_data_uri: '0'
media_embed:
id: media_embed
provider: media
status: false
weight: 100
settings:
default_view_mode: default
allowed_media_types: { }
allowed_view_modes: { }
1 change: 1 addition & 0 deletions config/sync/user.role.admnistrator_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ permissions:
- 'manage password reset'
- 'notify of path changes'
- 'use text format rich_text'
- 'use text format rich_text_limited'
- 'view node link report'
- 'view sections in toolbar'
- 'view the administration theme'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ permissions:
- 'use editorial transition stage_for_publishing'
- 'use moderation sidebar'
- 'use text format rich_text'
- 'use text format rich_text_limited'
- 'use workbench access'
- 'va gov deploy content build'
- 'view all media revisions'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ permissions:
- 'use editorial transition review'
- 'use moderation sidebar'
- 'use text format rich_text'
- 'use text format rich_text_limited'
- 'use workbench access'
- 'view all media revisions'
- 'view all revisions'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ permissions:
- 'use editorial transition stage_for_publishing'
- 'use moderation sidebar'
- 'use text format rich_text'
- 'use text format rich_text_limited'
- 'use workbench access'
- 'va gov deploy content build'
- 'view all media revisions'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ permissions:
- 'use editorial transition stage_for_publishing'
- 'use moderation sidebar'
- 'use text format rich_text'
- 'use text format rich_text_limited'
- 'use workbench access'
- 'view all media revisions'
- 'view all revisions'
Expand Down
1 change: 1 addition & 0 deletions tests/behat/drupal-spec-tool/content_model_fields.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Feature: Content model fields
| 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 | Intro text | field_intro_text_limited_html | Text (formatted, long) | Required | 1 | -- Disabled -- | |
| 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 -- | |
Expand Down
5 changes: 5 additions & 0 deletions tests/phpunit/SecurityRolesPermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public function expectedPerms() {
'use editorial transition stage_for_publishing',
'use moderation sidebar',
'use text format rich_text',
'use text format rich_text_limited',
'use workbench access',
'va gov deploy content build',
'view all media revisions',
Expand Down Expand Up @@ -267,6 +268,7 @@ public function expectedPerms() {
'use editorial transition review',
'use moderation sidebar',
'use text format rich_text',
'use text format rich_text_limited',
'use workbench access',
'view all media revisions',
'view all revisions',
Expand Down Expand Up @@ -376,6 +378,7 @@ public function expectedPerms() {
'use editorial transition stage_for_publishing',
'use moderation sidebar',
'use text format rich_text',
'use text format rich_text_limited',
'use workbench access',
'view all media revisions',
'view all revisions',
Expand Down Expand Up @@ -555,6 +558,7 @@ public function expectedPerms() {
'use editorial transition stage_for_publishing',
'use moderation sidebar',
'use text format rich_text',
'use text format rich_text_limited',
'use workbench access',
'va gov deploy content build',
'view all media revisions',
Expand Down Expand Up @@ -617,6 +621,7 @@ public function expectedPerms() {
'manage password reset',
'notify of path changes',
'use text format rich_text',
'use text format rich_text_limited',
'view node link report',
'view sections in toolbar',
'view the administration theme',
Expand Down

2 comments on commit ad1b913

@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.

❌ Test Failed: va/tests/accessibility
composer va:test:accessibility
> [email protected] install /var/www/cms/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...

Received 22866K total.
Extracting tar contents (via spawned process)
Removing /var/www/cms/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1586196110707/phantomjs-2.1.1-linux-x86_64 -> /var/www/cms/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /var/www/cms/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

> [email protected] postinstall /var/www/cms/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 134 packages from 190 contributors and audited 183 packages in 12.253s
found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

> [email protected] test /var/www/cms
> node ./tests/accessibility/aXeAccessibilityCheck.js

!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com 1
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/sections  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/page  = 2
[ { 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] ] },
  { 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] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/landing_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/documentation_page  = 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] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/event  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/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://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/health_care_region_detail_page  = 2
[ { 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] ] },
  { 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] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/health_care_region_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/office  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/outreach_asset  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/person_profile  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/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://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/regional_health_care_service_des  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/news_story  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-staging-cms-1188006.us-gov-west-1.elb.amazonaws.com/node/add/support_service  = 0
[]
!!!  VIOLATION TYPES FOUND: 8 PROCESS EXITED WITH CODE 1  !!!
> npm install --only=production
> npm test
Mon, 06 Apr 2020 18:01:55 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:44:14
Mon, 06 Apr 2020 18:02:00 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:56:42
npm ERR! Test failed.  See above for more details.
Script npm test handling the va:test:accessibility event returned with error code 1
  • On: ip-10-247-34-247
  • In: 02:17

@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.

❌ Test Failed: va/tests/accessibility
composer va:test:accessibility
> [email protected] install /var/www/cms/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...

Received 22866K total.
Extracting tar contents (via spawned process)
Removing /var/www/cms/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1586196133522/phantomjs-2.1.1-linux-x86_64 -> /var/www/cms/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /var/www/cms/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

> [email protected] postinstall /var/www/cms/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 134 packages from 190 contributors and audited 183 packages in 12.618s
found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

> [email protected] test /var/www/cms
> node ./tests/accessibility/aXeAccessibilityCheck.js

!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com 1
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/sections  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/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://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/landing_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/documentation_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/event  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/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://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/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://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/health_care_region_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/office  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/outreach_asset  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/person_profile  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/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://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/regional_health_care_service_des  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/news_story  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://internal-dsva-vagov-dev-cms-812329399.us-gov-west-1.elb.amazonaws.com/node/add/support_service  = 0
[]
!!!  VIOLATION TYPES FOUND: 5 PROCESS EXITED WITH CODE 1  !!!
> npm install --only=production
> npm test
Mon, 06 Apr 2020 18:02:17 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:44:14
Mon, 06 Apr 2020 18:02:23 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: ip-10-247-96-230
  • In: 02:10

Please sign in to comment.