-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add storybook a11y testing #142 #1450
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
50600b6
Add storybook storyshots puppeteer addon
akegan 35297ca
Get yarn:a11y test up and running locally
akegan 7951469
Fix alt text-related issues
akegan 484835a
Try running a11y tests on circleCI
akegan 5b7a9a3
Make sure static storybook build is gitignored
akegan 0a9136a
Actually add a11y tests to circleCI pipeline
akegan 4ce6730
Disable nested interactive rule for Tab-like Nav
akegan 5413fe4
Move storyshots-puppeteer and puppeteer into dev dependencies
akegan 73502d2
Add unmet peer dependency of preact
akegan 061eaf2
Fix failing jest tests
akegan 2c7cb5e
Try node docker image with browsers
akegan e083707
Use non-legacy docker image
akegan 3aefec2
Fix code style issues with Prettier
lint-action 53c3f81
Fix a11y issue with dropzone story
akegan df701ea
Merge branch 'add-storybook-a11y-testing-#142' of https://github.com/…
akegan b64be61
Add changes to changelog
akegan 90268eb
Fix code style issues with Prettier
lint-action e5da44d
Merge branch 'dev' into add-storybook-a11y-testing-#142
akegan 6a756c4
Merge remote-tracking branch 'remotes/upstream/dev' into add-storyboo…
seanmalbert 579a10c
adds description prop to ImageCard for alt text
seanmalbert e9e1ab9
updates ImageCard tests
seanmalbert 378ceb9
Fix code style issues with Prettier
lint-action File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// From https://www.npmjs.com/package/@storybook/addon-storyshots-puppeteer | ||
|
||
import initStoryshots from "@storybook/addon-storyshots" | ||
import { axeTest } from "@storybook/addon-storyshots-puppeteer" | ||
import * as path from "path" | ||
|
||
initStoryshots({ | ||
suite: "a11y checks", | ||
test: axeTest({ | ||
storybookUrl: `file://${path.resolve(__dirname, "../storybook-static")}`, | ||
}), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,12 @@ export const defaultDropzone = () => { | |
{progressValue == 0 && ( | ||
<p className="mt-16">(Provide Cloudinary credentials via the Knobs below.)</p> | ||
)} | ||
<img src={cloudinaryImage} style={{ width: "200px" }} /> | ||
<img | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This ARIA role is not valid. |
||
src={cloudinaryImage} | ||
style={{ width: "200px" }} | ||
role={cloudinaryImage ? undefined : "none"} | ||
alt={cloudinaryImage && "uploaded file"} | ||
/> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ More content | |
className="is-normal-primary-lighter" | ||
> | ||
{` | ||
### Header 3 | ||
#### Header 4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as this comment |
||
|
||
* A list | ||
* of items | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this because of the rule "Ensures the order of headings is semantically correct". We had a jump from an h2 at the InfoCard grid level to this h3. It doesn't affect the styling, just the semantics
More info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Longterm plan, should have props for tags so that you set it at the appropriate level depending on the context. Add a TODO to add props, or create an issue about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added #1516 to address this.