docs: add test conventions reference#24
Draft
kashish2508 with Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/microsoft/sample-webapp/sessions/fb6ed66b-ffea-4a01-8196-c320809675a6 Co-authored-by: kashish2508 <90824921+kashish2508@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add conventions document for Copilot sessions
docs: add test conventions reference
May 18, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Captures ARIA and selector conventions from the login and dashboard pages into a single reference document so future Copilot agent sessions don't need to re-read source files to write correct selectors.
docs/test-conventions.mdrole="status"for success,role="alert"for errors; both carryaria-live="polite"(static). Specs target viagetByRole('status')/getByRole('alert'), never#message.getByRole('textbox', { name: 'Username' }),getByRole('textbox', { name: 'Password' }),getByRole('button', { name: 'Login' }).<h3>label +<p class="stat" id="…">value. IDs:#user-count,#revenue,#order-count. Tests usegetByRole('heading', { name, level: 3 })for labels,locator('#id')for values.div.chart-skeletonwithrole="status"andaria-label="Loading {label} chart"for the first 900 ms. Parent grid carriesaria-busy={isChartsLoading}.prefers-reduced-motion— CSS-only (animation: none+ static background inside the media query). No JS hook; usepage.emulateMedia({ reducedMotion: 'reduce' })in Playwright tests.Five corresponding Copilot Memory entries were stored so heal/review agents can use these conventions without additional file reads.
Original prompt