You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the default config the tests run correctly:
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
layout: "centered",
a11y: {},
},
[Search.stories.jsx component] Test Suite
───────────────────────────────────────────────────────────────────────────────
ℹ Connected to selenium_chrome on port 4444 (242ms).
Using: chrome (94.0.4606.61) on LINUX.
Running "Default" story:
───────────────────────────────────────────────────────────────────────────────────────────────────
✖ NightwatchAssertError
There are accessibility violations; please see the complete report for details.
Read More :
https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md
FAILED: 1 assertions failed (1.04s)
I want to specify tags to run using the runOnly options like below:
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
layout: "centered",
a11y: {
options: {
runOnly: {
type: "tag",
values: ["wcag2a", "wcag2aa"],
},
},
},
},
Which results in a syntax error?
[@nightwatch/storybook] Found 1 total number of story files, of which 1 were ignored due to errors.
[@nightwatch/storybook] Found 1 total number of story files, of which 1 were ignored due to errors.
[@nightwatch/storybook] Found 1 total number of story files, of which 1 were ignored due to errors.
Wrote HTML report file to: /app/docroot/modules/custom/foobar_react/js/tests_output/nightwatch-html-report/index.html
✖ SyntaxError
Cannot use import statement outside a module
In order to be able to load JSX files, one of these plugins is needed:
- @nightwatch/react
- @nightwatch/storybook (only if using Storybook in your project)
Try fixing by :
1. Using ES6 import/export syntax? - make sure to specify "type=module"in your package.json or use .mjs extension.
Read More :
https://nodejs.org/api/esm.html
When using the default config the tests run correctly:
I want to specify tags to run using the runOnly options like below:
Which results in a syntax error?
Versions:
The text was updated successfully, but these errors were encountered: