-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Describe the bug
Our sample project using this library began seeing a failure in previously-working usage with 2.1.1. The symptom reported by the test runner is:
An exception of type 'Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException' occurred in FluentAssertions.dll but was not handled in user code: 'Expected axeResultExcludingExampleViolationsElement.Violations to be empty, but found <null>.'
Running under a debugger, the real issue proves to be that axe-core has returned an error, so the AxeResult object is the Error form with null data properties. The Error is allowedOrigins value "null" is not a valid origin.
I haven't debugged further than this yet. The error is surprising to see because SeleniumAxeDotnet doesn't explicitly override any axe-core configure() parameters, including allowedOrigins.
To Reproduce
Steps to reproduce the behavior:
- Have .NET Core 3.1 installed
git clone https://github.com/microsoft/axe-pipelines-samples.gitcd axe-pipelines-samples/csharp-selenium-webdriver-sample- Update the
Selenium.Axereference inCSharpSeleniumWebdriverSample.csprojto version 2.1.1 dotnet test
Expected behavior
Analyze() produces an AxeResult successfully with data populated, as 2.1.0 does.
Screenshots
n/a
Desktop (please complete the following information):
- OS: Windows 21H1 OS Build 19043.985
- Browser: repros with firefox and chrome (latest respective drivers)
- Version: 2.1.1