-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Extract markdown documentation changes from PR #32064 and merge enhancements from PR #32270 #32280
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
Conversation
Co-authored-by: PureWeen <[email protected]>
Co-authored-by: PureWeen <[email protected]>
Merged changes from PR #32270 in commit 0702718. This adds:
|
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.
Pull Request Overview
This PR reorganizes and significantly enhances the UI testing documentation for the .NET MAUI repository. The changes split the monolithic UITesting.md document into three focused documents with clearer separation of concerns and adds a new AGENTS.md file for AI coding assistants.
Key changes:
- Splits documentation into practical guide (UITesting-Guide.md), architecture/CI guide (UITesting-Architecture.md), and GitHub-specific instructions (uitests.instructions.md)
- Creates AGENTS.md as a comprehensive reference for AI coding assistants
- Updates copilot-instructions.md and templates.instructions.md with improvements and standardized frontmatter
- Removes the old monolithic UITesting.md file
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 21 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/design/UITesting.md | Removed old monolithic UI testing documentation (143 lines deleted) |
| docs/design/UITesting-Architecture.md | New architecture-focused document covering CI/CD, advanced patterns, and logging |
| docs/UITesting-Guide.md | New comprehensive practical guide for day-to-day UI test writing with API reference |
| AGENTS.md | New top-level guidance document for AI coding assistants with setup commands and troubleshooting |
| .github/instructions/uitests.instructions.md | New GitHub Copilot-specific instructions for UI testing with path-scoped application |
| .github/instructions/templates.instructions.md | Updated frontmatter format from applies_to to applyTo |
| .github/copilot-instructions.md | Enhanced with frontmatter, SDK verification emphasis, troubleshooting section, and streamlined UI testing guidance |
| ``` | ||
|
|
||
| **File:** `src/Controls/tests/TestCases.HostApp/Issues/IssueXXXXX.xaml.cs` | ||
|
|
Copilot
AI
Oct 29, 2025
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.
Inconsistent indentation in the code example. The constructor at line 82 has no indentation, while the method at line 87 has 4 spaces. This should be consistently indented to match C# conventions.
| ### Step 2: Create the NUnit Test | ||
|
|
||
| **File:** `src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/IssueXXXXX.cs` | ||
|
|
Copilot
AI
Oct 29, 2025
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.
Inconsistent indentation in the code example. Lines 108-110 show the constructor with 4-space indentation, but this is inconsistent with line 82's example which has no indentation. All code examples should follow consistent indentation patterns.
docs/UITesting-Guide.md
Outdated
|
|
||
| ### Element Interaction | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 137 should specify the language as csharp for proper syntax highlighting: ```csharp
| ``` | |
| ```csharp |
docs/UITesting-Guide.md
Outdated
|
|
||
| ### Gestures | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 161 should specify the language as csharp for proper syntax highlighting: ```csharp
| ``` | |
| ```csharp |
docs/UITesting-Guide.md
Outdated
|
|
||
| ### Scrolling | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 181 should specify the language as csharp for proper syntax highlighting: ```csharp
| ``` | |
| ```csharp |
docs/UITesting-Guide.md
Outdated
|
|
||
| ### Always Wait for Elements | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 391 should specify the language as csharp for proper syntax highlighting: ```csharp
| ``` | |
| ```csharp |
docs/UITesting-Guide.md
Outdated
|
|
||
| ### Test Orientation Changes | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 402 should specify the language as csharp for proper syntax highlighting: ```csharp
| ``` | |
| ```csharp |
|
|
||
|
|
||
| ## Example: Complete Test | ||
|
|
Copilot
AI
Oct 29, 2025
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.
Inconsistent indentation in the code example. The constructor at line 457 has no indentation, while it should be consistently indented to match the previous examples and C# conventions.
docs/UITesting-Guide.md
Outdated
|
|
||
| **File:** `src/Controls/tests/TestCases.HostApp/Issues/IssueXXXXX.xaml` | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 52 should specify the language as xml or xaml for proper syntax highlighting.
| ``` | |
| ```xml |
docs/UITesting-Guide.md
Outdated
|
|
||
| ### All Platforms | ||
|
|
||
| ``` |
Copilot
AI
Oct 29, 2025
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.
Missing language identifier for the code block. The code block starting at line 16 should specify the language as bash for proper syntax highlighting: ```bash
| ``` | |
| ```bash |
|
@copilot work through all the comments made by copilot and assess whether you want to apply those changes or not |
…e.md Co-authored-by: PureWeen <[email protected]>
|
@copilot when reviewing the logs I don't see any reference to copilot-instructions.md Is that file in the right place and setup correctly so that you will use it when working on a PR? |
Reviewed and applied all 21 suggestions from the automated code review in commit db49547:
|
…nstructions.md Co-authored-by: PureWeen <[email protected]>
Yes,
|
|
@copilot does including those links in the copilot instructions do anything for agents? Or is that mainly for humans ? |
The links serve both purposes: For AI agents: Copilot can follow markdown links to fetch and read the referenced files. When working on UI test files in For humans: The links provide quick navigation to detailed documentation when reviewing or working with the instructions file. The key benefit is discoverability - having the links ensures both humans and agents know where to find the comprehensive documentation beyond the quick reference tips. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
| @@ -0,0 +1,250 @@ | |||
| # AGENTS.md | |||
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.
Follows good practices but could be more concise for AI agents to parse efficiently. Have some repeated information from copilot-instructions.md
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.
Yea, it's an unfortunate world right now with copilot-instructions and Agents.md
We basically need both :-/
one for generalized agents
and one for the padawan agent to use
It's not great but hopefully it gets standardized at some point
| @@ -0,0 +1,208 @@ | |||
| # UI Testing Architecture and CI Integration | |||
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.
Missing frontmatter metadata.
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.
@copilot can you add frontmatter metadata to this markdown file please?
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.
@copilot can you add frontmatter metadata to this markdown file please?
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 frontmatter metadata in commit f20f25d to both docs/design/UITesting-Architecture.md and docs/UITesting-Guide.md with description fields for consistency.
| @@ -0,0 +1,508 @@ | |||
| # UI Testing Guide for .NET MAUI Repository | |||
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.
Missing frontmatter metadata
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.
@copilot can you add frontmatter metadata to this markdown file please?
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.
@copilot can you add frontmatter metadata to this markdown file please?
|
@PureWeen Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
Co-authored-by: PureWeen <[email protected]>
|
@copilot for the front matter metadata on the mark down files can you add date as well ? so we have a record on the file when it was last updated |
Co-authored-by: PureWeen <[email protected]>
Added
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Updates
.github/copilot-instructions.mdto simplify UI Testing Guidelines section, reorganizes template instructions, and merges comprehensive UI testing documentation enhancements from PR #32270.Summary
This PR extracts only the markdown documentation changes from PR #32064 (Fix SafeAreaEdges.SoftInput applying bottom padding when keyboard is hidden) and merges additional UI testing documentation enhancements from PR #32270.
Changes Made
Documentation Files with Frontmatter Metadata:
All markdown documentation files now include standardized frontmatter with
descriptionanddatefields for tracking:.github/copilot-instructions.md- GitHub Copilot-specific quick reference.github/instructions/templates.instructions.md- Template-specific instructions.github/instructions/uitests.instructions.md- UI test-specific instructionsdocs/UITesting-Guide.md- Comprehensive practical UI testing guidedocs/design/UITesting-Architecture.md- Architecture and CI/CD integrationCode Quality Improvements:
Documentation Organization:
.github/copilot-instructions.md:.github/instructions/templates.instructions.md:.github/copilot-instructions/templates.mdapplies_to:(YAML list) toapplyTo:(single string) format.github/instructions/uitests.instructions.md:docs/UITesting-Guide.md:docs/design/UITesting-Architecture.md:File Structure
The documentation is now organized as:
.github/copilot-instructions.md- GitHub Copilot-specific quick reference with links to detailed docs.github/instructions/- Path-specific instructions that apply to certain directoriesdocs/UITesting-Guide.md- Comprehensive practical guide for UI testingdocs/design/UITesting-Architecture.md- Architecture and CI/CD integration detailsAGENTS.md- Comprehensive reference for AI coding assistantsWhat's NOT Included
This PR does NOT include any code changes from PR #32064:
SafeAreaExtensions.cs(Android)MauiView.cs(iOS)SafeAreaEdges.csIssue28986.csVerification
All changes have been verified:
Related PRs
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.