-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Add Material3 test category and separate pipeline stage for android material3 UI tests #33409
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
[Testing] Add Material3 test category and separate pipeline stage for android material3 UI tests #33409
Changes from all commits
de329e8
3000b48
c790121
d463f78
7db955f
1a9533a
5150104
9ae6c7d
3630bdb
cfe461b
a15f12d
e1a8cc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <ContentPage | ||
| xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
| x:Class="Maui.Controls.Sample.Issues.Material3CheckBoxDefaultAppearance"> | ||
|
|
||
| <ScrollView> | ||
| <VerticalStackLayout Padding="20" | ||
| Spacing="16"> | ||
| <Label Text="Material3 CheckBox Test" | ||
| FontSize="18" | ||
| FontAttributes="Bold"/> | ||
| <CheckBox | ||
| x:Name="DefaultCheckBox" | ||
| AutomationId="DefaultCheckBox" | ||
| IsChecked="True"/> | ||
| <Button | ||
| Text="Sample Button"/> | ||
| </VerticalStackLayout> | ||
| </ScrollView> | ||
| </ContentPage> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
|
|
||
| namespace Maui.Controls.Sample.Issues | ||
| { | ||
| [Issue(IssueTracker.None, 0, "Material3 CheckBox Testing", PlatformAffected.Android)] | ||
| public partial class Material3CheckBoxDefaultAppearance : ContentPage | ||
| { | ||
| public Material3CheckBoxDefaultAppearance() | ||
| { | ||
| InitializeComponent(); | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #if ANDROID | ||
|
||
| using NUnit.Framework; | ||
| using UITest.Appium; | ||
| using UITest.Core; | ||
|
|
||
| namespace Microsoft.Maui.TestCases.Tests.Issues | ||
| { | ||
| public class Material3CheckBoxDefaultAppearanceTest : _IssuesUITest | ||
| { | ||
| public Material3CheckBoxDefaultAppearanceTest(TestDevice testDevice) : base(testDevice) | ||
| { | ||
| } | ||
|
|
||
| public override string Issue => "Material3 CheckBox Testing"; | ||
|
|
||
| [Test] | ||
| [Category(UITestCategories.Material3)] | ||
| public void Material3CheckBox_DefaultAppearance() | ||
| { | ||
| App.WaitForElement("DefaultCheckBox"); | ||
| VerifyScreenshot(); | ||
| } | ||
| } | ||
| } | ||
| #endif | ||
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.
The platform name in the artifact parameters is 'Android Material3' with a space, which may cause issues with artifact naming or filtering. Consider using a consistent naming pattern without spaces, such as 'AndroidMaterial3' or 'Android-Material3', to match the pattern used in artifact names like 'uitest-snapshot-results-android-material3-...'.