-
Notifications
You must be signed in to change notification settings - Fork 2.8k
A11Y testing using AI #34924
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
Draft
Anush2303
wants to merge
5
commits into
microsoft:master
Choose a base branch
from
Anush2303:usr/agupta/a11y/ai
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
A11Y testing using AI #34924
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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 hidden or 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,26 @@ | ||
## Repository Structure | ||
|
||
Fluent UI is a **monorepo** managed with Yarn workspace. | ||
It contains multiple packages, each with its own purpose and versioning strategy. The main packages of interest for charting components are: | ||
|
||
Key structure: | ||
|
||
- **`react-charting` (v8)** → Legacy charting components built on Fluent UI v8 styling & patterns. | ||
- **`react-charts` (v9)** → Next-generation chart components based on Fluent UI v9, focusing on modern React patterns, hooks, and convergence goals. | ||
|
||
## Build & Setup | ||
|
||
### Step 1: | ||
|
||
Install dependencies (from root): | ||
run `yarn install` | ||
|
||
### Step 2: | ||
|
||
Go to the `packages/charts/react-charts/library` directory: | ||
run `yarn build` to build the v9 charting components. | ||
|
||
### Step 3: | ||
|
||
Run the local Storybook server: | ||
run `yarn start` from `packages/charts/react-charts/library` to run the local Storybook server for the v9 charting components. |
This file contains hidden or 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,63 @@ | ||
# Accessibility Issue Fixing Prompt | ||
|
||
**Context:** | ||
You are tasked with fixing an accessibility issue in the charts component of the Fluent UI library and validate it. | ||
|
||
**Instructions:** | ||
|
||
### Step 1: Bug Context Gathering | ||
|
||
- Take the concerned project name and bug id from the user. | ||
|
||
- Use the ADO MCP Server to gather all relevant context for the bug/work item with the given ID. | ||
|
||
- Ensure you understand the nature of the bug, its impact on accessibility, and any related user stories or acceptance criteria. | ||
|
||
### Step 2: Fix Implementation | ||
|
||
- Explain the root cause and target component of the bug to the user. | ||
|
||
- fix the bug and focus only on the solution of given bug. don't add extra things. | ||
|
||
- Don't introduce any extra bugs. fix all syntax errors before proceeding. | ||
|
||
- Ensure that the fix adheres to accessibility standards, such as WCAG 2.1. | ||
|
||
- Implement the fix in `packages/charts/react-charts/library` package. This package represents the v9 version of charts. | ||
|
||
- For reference, you can refer the `packages/charts/react-charting/src` package which holds the v8 version of charts. Don't change any code in this folder. | ||
|
||
### Step 3: Validation using Playwright MCP and a11y-accessibility MCP | ||
|
||
validate the bug using playwright and a11y-accessibility MCP. Follow the following steps for this validation: | ||
|
||
- Go to directory `packages/charts/react-charts/library` from root `fluentui` if not already there. | ||
|
||
**Run all yarn commands from `packages/charts/react-charts/library` directory.** | ||
|
||
- Refer package.json in `packages/charts/react-charts/library` to build the package. Solve build errors if any before proceeding. | ||
|
||
- Refer package.json in `packages/charts/react-charts/library` to run the storybook localhost server and ensure it is running. | ||
|
||
- **Wait for the server to start.** Only after the storybook is up and running, Use the **localhost server link running in terminal** to validate the bug using playwright MCP in the same terminal session. **Don't start a new terminal session.** | ||
|
||
- Don't open a simple browser window. Use the Playwright MCP to run the tests. | ||
|
||
- Wait for the chart to fully render. | ||
|
||
### Step 4: Screenshot Capture and Accessibility Testing | ||
|
||
**Capture every screenshot of entire page** | ||
|
||
- **Click on the example story and in the interactive chart canvas area immediately** to ensure focus reaches to the chart controls. We don't want to test anything outside chart controls. Wait till control reaches interactive chart elements. | ||
|
||
- First enumerate all the test cases that you will run to validate the fix. Also tell me the action and validation steps for each test case. | ||
|
||
- Start validating the fix by capturing screenshots of the interactive chart elements using Playwright MCP. **Start capturing screenshots after focus reaches the interactive chart elements. Don't take screenshots before that of other components.** | ||
|
||
- **Capture screenshots of entire chart canvas after each step** on pressing tab keys. Continue this process till control reaches outside the interactive chart elements. | ||
|
||
- Check for any ARIA attributes that may need to be added or modified to enhance accessibility. | ||
**At the end, capture accessibility snapshot of the chart canvas to validate references of aria-labels**. | ||
|
||
- Ensure that the fix does not introduce any new issues or regressions in the charting components. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Avatar Converged 2 screenshots
vr-tests-react-components/Charts-DonutChart 2 screenshots
vr-tests-react-components/Charts-HorizontalBarChart 2 screenshots
vr-tests-react-components/Drawer 2 screenshots
vr-tests-react-components/Positioning 2 screenshots
vr-tests-react-components/Skeleton converged 1 screenshots
vr-tests-react-components/TagPicker 1 screenshots
There were 1 duplicate changes discarded. Check the build logs for more information.