-
Notifications
You must be signed in to change notification settings - Fork 1.9k
UI Test Coding Agent
Shane Neuville edited this page Dec 8, 2025
·
1 revision
The UI Test Coding Agent is a specialized AI assistant for writing new UI tests for .NET MAUI with proper syntax, style, and conventions.
- VS Code: Custom Agents in VS Code
- Copilot CLI: GitHub Copilot CLI
The UI Test Coding Agent:
- ✅ Creates new UI test pages in TestCases.HostApp
- ✅ Writes NUnit tests in TestCases.Shared.Tests
- ✅ Follows MAUI UI testing conventions and patterns
- ✅ Uses proper AutomationIds and Appium interactions
- ✅ Applies correct test categories
- ✅ Matches repository testing standards
Use the UI Test Coding Agent when:
- Creating new UI tests for a bug fix or feature
- Adding test coverage for existing functionality
- Converting manual test scenarios into automated tests
- Updating existing tests with new test cases
write UI test for issue #12345
write UI test for CollectionView item selection
create UI test that verifies Button click updates a Label
write UI test for Android SafeArea issue #12345
add a test case to Issue12345.cs that verifies the bug doesn't happen after rotation
write UI test that:
1. Navigates to a new page
2. Fills out a form
3. Submits it
4. Verifies success message appears
write UI test for issue #12345 that measures the Grid layout and verifies child element positions
write UI test for https://github.com/dotnet/maui/issues/12345
write UI test for Layout issue #12345 - make sure to use UITestCategories.Layout
Provide more context for better results:
write UI test for issue #12345 which is about CollectionView crashing on item removal
write UI test for https://github.com/dotnet/maui/issues/12345
write UI test for Android-specific SafeArea bug in issue #12345
write UI test that verifies:
- Button is visible on load
- Tapping button changes label text
- Label text persists after navigation
write UI test for Layout issue #12345 - make sure to use UITestCategories.Layout
write test that taps a Button and verifies a Label updates
write test that enters text in Entry and submits a form
write test that navigates to a new page and verifies page content
write test for Shell navigation with multiple tabs
write test that measures Grid row heights after layout
write test that verifies SafeArea padding on iOS
write test that verifies button VisualState changes on tap
write test that checks element visibility after property change
the test you created has a build error: [paste error]
the test can't find element "TestButton" - can you check the AutomationIds?
change the test category to UITestCategories.Layout instead of UITestCategories.Button