diff --git a/UITests/AxeHelper.cs b/UITests/AxeHelper.cs index cc4f1856b..a8d87e0e9 100644 --- a/UITests/AxeHelper.cs +++ b/UITests/AxeHelper.cs @@ -15,6 +15,8 @@ //****************************************************************************** using Axe.Windows.Automation; +using Axe.Windows.Core.Enums; +using Axe.Windows.Rules; using System.Diagnostics; using System.Linq; @@ -36,7 +38,10 @@ internal static void InitializeAxe() public static void AssertNoAccessibilityErrors() { - var testResult = AccessibilityScanner.Scan(null).WindowScanOutputs.SelectMany(output => output.Errors); + var testResult = AccessibilityScanner.Scan(null).WindowScanOutputs.SelectMany(output => output.Errors) + .Where(rule => rule.Rule.ID != RuleId.NameIsInformative) + .Where(rule => rule.Rule.ID != RuleId.NameExcludesControlType) + .Where(rule => rule.Rule.ID != RuleId.NameExcludesLocalizedControlType); if (testResult.Count() != 0) { var mappedResult = testResult.Select(result => "Element " + result.Element.Properties["ControlType"] + " violated rule '" + result.Rule.Description + "'."); diff --git a/UITests/TestBase.cs b/UITests/TestBase.cs index a5521d1f4..f9a6bb2dd 100644 --- a/UITests/TestBase.cs +++ b/UITests/TestBase.cs @@ -31,7 +31,7 @@ public static void OpenControlPage(string name) search.SendKeys(name); Thread.Sleep(1_000); Session.FindElementByName(name).Click(); - + Thread.Sleep(5_000); AxeHelper.AssertNoAccessibilityErrors(); } diff --git a/WinUIGallery/ControlPages/ButtonPage.xaml b/WinUIGallery/ControlPages/ButtonPage.xaml index b0de49cc8..74f81ad2c 100644 --- a/WinUIGallery/ControlPages/ButtonPage.xaml +++ b/WinUIGallery/ControlPages/ButtonPage.xaml @@ -80,10 +80,10 @@ diff --git a/WinUIGallery/ControlPages/ProgressBarPage.xaml b/WinUIGallery/ControlPages/ProgressBarPage.xaml index 077db883e..664633991 100644 --- a/WinUIGallery/ControlPages/ProgressBarPage.xaml +++ b/WinUIGallery/ControlPages/ProgressBarPage.xaml @@ -43,7 +43,7 @@ - +