Skip to content

Improve VisualState order and prevent sticky Focused visual state - #27477

Closed
mattleibow wants to merge 41 commits into
net11.0from
dev/focus-visual-states
Closed

Improve VisualState order and prevent sticky Focused visual state#27477
mattleibow wants to merge 41 commits into
net11.0from
dev/focus-visual-states

Address review feedback for #27477

200e647
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Jul 13, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Known Infrastructure Errors

Build Failures

maui-pr-uitests / iOS UITests CoreCLR CollectionView1 / Controls (vlatest)

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌The job running on agent AcesShared 12 ran longer than the maximum time of 180 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134

maui-pr-uitests / Android UITests CoreClr / Controls (API 30) / Controls (API 30) Border,BoxView,Brush,Button / Controls (API 30) Border,BoxView,Brush,Button

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌PowerShell exited with code '1'.

maui-pr-uitests / Android UITests CoreClr / Controls (API 30) / Controls (API 30) Border,BoxView,Brush,Button / Publish the android_ui_tests_controls_30 test results

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

12 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [maui-pr-uitests] [maui-pr] [maui-pr-devicetests]

Test Failures (28 tests failed)

🔹 [All failing tests from maui-pr-uitests]

    ⚠️ 23 failing tests not displayed for this pipeline due to space limitations

    Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests(iOS).VerifyImageButtonAspect_AspectFillWithImageSourceFromUri [Details] [2.57% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: VerifyImageButtonAspect_AspectFillWithImageSourceFromUri.png (23.66% difference)
    If the correct baseline has changed (this isn't a a bug), then update the baseline image.
    See test attachment or download the build artifacts to get the new snapshot file.
    

    More info: https://aka.ms/visual-test-workflow

    CallStack
       at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 296
       at Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests.VerifyImageButtonAspect_AspectFillWithImageSourceFromUri() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageButtonFeatureTests.cs:line 132
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests(iOS).VerifyImageButtonAspect_AspectFitWithImageSourceFromUri [Details] [2.58% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: VerifyImageButtonAspect_AspectFitWithImageSourceFromUri.png (15.32% difference)
    If the correct baseline has changed (this isn't a a bug), then update the baseline image.
    See test attachment or download the build artifacts to get the new snapshot file.
    

    More info: https://aka.ms/visual-test-workflow

    CallStack
       at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 296
       at Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests.VerifyImageButtonAspect_AspectFitWithImageSourceFromUri() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageButtonFeatureTests.cs:line 67
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests(iOS).VerifyImageButtonAspect_CenterWithImageSourceFromUri [Details] [2.58% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: VerifyImageButtonAspect_CenterWithImageSourceFromUri.png (22.99% difference)
    If the correct baseline has changed (this isn't a a bug), then update the baseline image.
    See test attachment or download the build artifacts to get the new snapshot file.
    

    More info: https://aka.ms/visual-test-workflow

    CallStack
       at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 296
       at Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests.VerifyImageButtonAspect_CenterWithImageSourceFromUri() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageButtonFeatureTests.cs:line 299
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests(iOS).VerifyImageButtonAspect_FillWithImageSourceFromUri [Details] [2.58% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: VerifyImageButtonAspect_FillWithImageSourceFromUri.png (24.60% difference)
    If the correct baseline has changed (this isn't a a bug), then update the baseline image.
    See test attachment or download the build artifacts to get the new snapshot file.
    

    More info: https://aka.ms/visual-test-workflow

    CallStack
       at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 296
       at Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests.VerifyImageButtonAspect_FillWithImageSourceFromUri() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageButtonFeatureTests.cs:line 165
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    
    Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests(Mac).VerifyImageButtonAspect_AspectFillWithImageSourceFromUri [Details] [2.58% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    VisualTestUtils.VisualTestFailedException : 
    Snapshot different than baseline: VerifyImageButtonAspect_AspectFillWithImageSourceFromUri.png (12.58% difference)
    If the correct baseline has changed (this isn't a a bug), then update the baseline image.
    See test attachment or download the build artifacts to get the new snapshot file.
    

    More info: https://aka.ms/visual-test-workflow

    CallStack
       at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 296
       at Microsoft.Maui.TestCases.Tests.ImageButtonFeatureTests.VerifyImageButtonAspect_AspectFillWithImageSourceFromUri() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ImageButtonFeatureTests.cs:line 132
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    

Was this helpful? Yes No