Fix static-analysis and PHPUnit tests errors #11491
Annotations
5 errors and 1 notice
tests/e2e/specs/block-editor/featured-image-notice.js#L813
TimeoutError: waiting for XPath `//button[contains(text(), 'Featured image')]` failed: timeout 60000ms exceeded
at new WaitTask (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28)
at DOMWorld.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:702:22)
at Frame.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/FrameManager.ts:1320:47)
at Page.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/Page.ts:3281:29)
at waitForXPath (/home/runner/work/amp-wp/amp-wp/tests/e2e/utils/click-button.js:9:28)
at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/specs/block-editor/featured-image-notice.js:25:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
tests/e2e/specs/block-editor/featured-image-notice.js#L196
Error: expect(received).toPassAxeTests(expected)
Expected page to pass Axe accessibility tests.
Violations found:
Rule: "aria-required-children" (Certain ARIA roles must contain particular children)
Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer
Affected Nodes:
#wp-admin-bar-root-default
Fix ANY of the following:
- Element has children which are not allowed: li[tabindex]
- Element uses aria-busy="true" while showing a loader
#wp-admin-bar-top-secondary
Fix ANY of the following:
- Element has children which are not allowed: li[tabindex]
- Element uses aria-busy="true" while showing a loader
Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents)
Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer
Affected Nodes:
#wp-admin-bar-wp-logo > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
:root
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
#wp-admin-bar-comments > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
#wp-admin-bar-new-content > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
#wp-admin-bar-my-account > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
|
tests/e2e/specs/block-editor/featured-image-notice.js#L813
TimeoutError: waiting for XPath `//button[contains(text(), 'Featured image')]` failed: timeout 60000ms exceeded
at new WaitTask (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28)
at DOMWorld.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/DOMWorld.ts:702:22)
at Frame.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/FrameManager.ts:1320:47)
at Page.waitForXPath (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/scripts/node_modules/puppeteer-core/src/common/Page.ts:3281:29)
at waitForXPath (/home/runner/work/amp-wp/amp-wp/tests/e2e/utils/click-button.js:9:28)
at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/specs/block-editor/featured-image-notice.js:25:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
tests/e2e/specs/block-editor/featured-image-notice.js#L196
Error: expect(received).toPassAxeTests(expected)
Expected page to pass Axe accessibility tests.
Violations found:
Rule: "aria-required-children" (Certain ARIA roles must contain particular children)
Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axe-puppeteer
Affected Nodes:
#wp-admin-bar-root-default
Fix ANY of the following:
- Element has children which are not allowed: li[tabindex]
- Element uses aria-busy="true" while showing a loader
#wp-admin-bar-top-secondary
Fix ANY of the following:
- Element has children which are not allowed: li[tabindex]
- Element uses aria-busy="true" while showing a loader
Rule: "aria-required-parent" (Certain ARIA roles must be contained by particular parents)
Help: https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axe-puppeteer
Affected Nodes:
#wp-admin-bar-wp-logo > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
:root
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
#wp-admin-bar-comments > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
#wp-admin-bar-new-content > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
#wp-admin-bar-my-account > .ab-item[role="menuitem"]
Fix ANY of the following:
- Required ARIA parents role not present: menu, menubar, group
at toPassAxeTests (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:196:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/tests/e2e/config/bootstrap.js:308:2)
|
|
|
This job failed
Loading