Skip to content

Commit cefec86

Browse files
CopilotPureWeen
andauthored
Optimize UITest category groups: split, combine, and remove Visual category (dotnet#32990)
* Initial plan * Split UITest category group into two runs Co-authored-by: PureWeen <[email protected]> * Move ScrollView to run separately Co-authored-by: PureWeen <[email protected]> * Split Label,Layout,Lifecycle,ListView and Shadow,ViewBaseTests,Visual,WebView,Window to run separately Co-authored-by: PureWeen <[email protected]> * Combine SafeAreaEdges and Shadow, remove Visual category and reassign tests Co-authored-by: PureWeen <[email protected]> * Combine category groups: Lifecycle+ManualReview+Maps, ViewBaseTests+Window, Cells+DatePicker groups Co-authored-by: PureWeen <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: PureWeen <[email protected]>
1 parent 36cd96a commit cefec86

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

eng/pipelines/common/ui-tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,27 @@ parameters:
1717
# we might want to improve this somehow depending on how much the categories change over time
1818
- 'Accessibility,ActionSheet,ActivityIndicator,Animation,AppLinks'
1919
- 'Border,BoxView,Brush,Button'
20-
- 'Cells,CheckBox,ContextActions,CustomRenderers'
2120
- 'CarouselView'
21+
- 'Cells,CheckBox,ContextActions,CustomRenderers,DatePicker,Dispatcher,DisplayAlert,DisplayPrompt,DragAndDrop'
2222
- 'CollectionView'
23-
- 'DatePicker,Dispatcher,DisplayAlert,DisplayPrompt,DragAndDrop'
2423
- 'Entry'
2524
- 'Editor,Effects,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView'
2625
- 'Image,ImageButton,IndicatorView,InputTransparent,IsEnabled,IsVisible'
27-
- 'Label,Layout,Lifecycle,ListView'
28-
- 'ManualReview,Maps'
26+
- 'Label'
27+
- 'Layout'
28+
- 'Lifecycle,ManualReview,Maps'
29+
- 'ListView'
2930
- 'Navigation'
3031
- 'Page,Performance,Picker,ProgressBar'
3132
- 'RadioButton,RefreshView'
32-
- 'SafeAreaEdges'
33-
- 'ScrollView,SearchBar,Shape,Slider,SoftInput,Stepper,Switch,SwipeView'
33+
- 'SafeAreaEdges,Shadow'
34+
- 'ScrollView'
35+
- 'SearchBar,Shape,Slider'
36+
- 'SoftInput,Stepper,Switch,SwipeView'
3437
- 'Shell'
3538
- 'TabbedPage,TableView,TimePicker,TitleView,ToolbarItem'
36-
- 'Shadow,ViewBaseTests,Visual,WebView,Window'
39+
- 'ViewBaseTests,Window'
40+
- 'WebView'
3741

3842
projects:
3943
- name: name

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17884.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public Issue17884(TestDevice device)
1313
public override string Issue => "[Android] Entire words omitted & letters truncated from Label display";
1414

1515
[Test]
16-
[Category(UITestCategories.Visual)]
16+
[Category(UITestCategories.Label)]
1717
public void VerifyTextIsNotMissing()
1818
{
1919
App.WaitForElement("StubLabel");

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24414.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public Issue24414(TestDevice device)
1313
public override string Issue => "Shadows not rendering as expected on Android and iOS";
1414

1515
[Test]
16-
[Category(UITestCategories.Visual)]
16+
[Category(UITestCategories.Shadow)]
1717
public void Issue24414Test()
1818
{
1919
App.WaitForElement("TheLabel");

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24847.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public Issue24847(TestDevice testDevice) : base(testDevice)
1313
public override string Issue => "[iOS] Background layer frame mapping has poor performance";
1414

1515
[Test]
16-
[Category(UITestCategories.Visual)]
16+
[Category(UITestCategories.Brush)]
1717
public void BackgroundFrameResizesFastAndCorrectly()
1818
{
1919
App.WaitForElement("ChangeSizeBtn");

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue27730.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public Issue27730(TestDevice testDevice) : base(testDevice)
1313
public override string Issue => "Shadow not updated when Clipping a View with a shadow";
1414

1515
[Test]
16-
[Category(UITestCategories.Visual)]
16+
[Category(UITestCategories.Shadow)]
1717
public void ShadowShouldUpdateWhenClipping()
1818
{
1919
App.WaitForElement("ApplyShadowBtn");

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue27732.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public Issue27732(TestDevice testDevice) : base(testDevice)
1515
const string ToggleShadowButton = "ToggleShadowButton";
1616

1717
[Test]
18-
[Category(UITestCategories.Visual)]
18+
[Category(UITestCategories.Shadow)]
1919
public void ViewShouldNotShiftOnShadowChanged()
2020
{
2121
App.WaitForElement(ToggleShadowButton);

src/Controls/tests/TestCases.Shared.Tests/UITestCategories.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ internal static class UITestCategories
5656
public const string Focus = "Focus";
5757
public const string ManualReview = "ManualReview";
5858
public const string Performance = "Performance";
59-
public const string Visual = "Visual";
59+
6060
public const string AppLinks = "AppLinks";
6161
public const string Shell = "Shell";
6262
public const string TabbedPage = "TabbedPage";

0 commit comments

Comments
 (0)