-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Added new SafeAreaEdges categories in UITest and created separate lane to run the category in API 36 #31355
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
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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 adds dedicated testing infrastructure for SafeAreaEdges functionality on Android API 36 using a Pixel 9 emulator configuration. The changes enable isolated testing of safe area behavior with proper device-specific screen dimensions and UI adjustments.
Key changes:
- Added SafeAreaEdges test category and pipeline configuration for Android API 36
- Integrated Pixel 9 emulator support with device-specific screen handling
- Updated test infrastructure to accommodate different Android device configurations
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| UITestCategories.cs | Adds SafeAreaEdges test category constant |
| UITest.cs | Updates device validation and screenshot cropping for API 36/Pixel 9 |
| BoxViewFeatureTests.cs | Temporarily changes test category to SafeAreaEdges for pipeline validation |
| ui-tests.yml | Adds API 36 support and dedicated SafeAreaEdges test stage |
| ui-tests-steps.yml | Adds deviceType parameter for Android device skin configuration |
| Versions.props | Adds Pixel 9 device configuration for API 36 emulator |
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/BoxViewFeatureTests.cs
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@anandhan-rajagopal I see relevant failing builds. Can you have a look? |
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.
LGTM. Not going to approve just in case we accidentally merge the edited test. If we have changes on another PR and this has to go in first, we can set up an empty test for now and that PR can delete. This way we start all the things.
| TestDevice.Android => 60, | ||
| TestDevice.Android => environmentName == "android-notch-36" ? 95 : 60, |
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.
It might be beneficial to refactor this section in net11 for better readability. But for now, this is OK to just get the ball rolling.
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.
Seems something is missing ? Maybe on cake how it creates the emulator first ?
Resolved tool to path /usr/local/lib/android/sdk/cmdline-tools/latest/bin/avdmanager
Executing: /usr/local/lib/android/sdk/cmdline-tools/latest/bin/avdmanager delete avd -n Emulator_36
Error: There is no Android Virtual Device named 'Emulator_36'.
null
Error: System.Exception: The emulator did not finish booting in time.
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.
@anandhan-rajagopal can you move the yaml changes on this pr to a separate pr. it would be nice to have the code working locally for now and not get bogged down with ci yet
|
/rebase |
…BoxViewFeatureTests.cs Co-authored-by: Copilot <[email protected]>
786bb7e to
c6d5f5a
Compare
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
This pull request introduces a dedicated test lane and emulator configuration for running SafeAreaEdges UI tests on Android API 36, specifically using a Pixel 9 device skin. It also updates the test infrastructure and test code to support and validate this new environment. The most important changes are grouped below:
Pipeline and Emulator Configuration:
eng/Versions.propsto support SafeAreaEdges testing.eng/pipelines/common/ui-tests.yml) to include Android API 36 and created a new test stage specifically for SafeAreaEdges tests using the Pixel 9 emulator. [1] [2] [3]ui-tests-steps.ymlto accept and use adeviceType(e.g., Pixel 9). [1] [2]Test Code and Category Updates:
SafeAreaEdgestoUITestCategoriesand temporarily changed the category ofBoxView_CornerRadiusWithColorto ensure it runs in the new pipeline. [1] [2]Test Logic and Validation:
UITest.csto recognize and validate the new Pixel 9 / API 36 emulator configuration, including screen size and density checks, and adjusted screenshot cropping logic for the new device. [1] [2] [3]