From 3f9c2ab1eef85588157fb0357a85e115b6bcd73d Mon Sep 17 00:00:00 2001 From: RSTZZZ Date: Fri, 22 Mar 2019 02:18:46 -0400 Subject: [PATCH] updating to use axe-core version 3.2.2 --- .../AxeBuilderTest.cs | 15 +++--- .../Globant.Selenium.Axe.Test.csproj | 53 ++++++++++++------- .../IntegrationTests.cs | 24 +++++++-- .../Globant.Selenium.Axe.Test/app.config | 15 ++++++ .../Globant.Selenium.Axe.Test/packages.config | 16 ++++-- .../Globant.Selenium.Axe/AxeBuilder.cs | 42 ++++++++++++--- .../Globant.Selenium.Axe/AxeResult.cs | 7 ++- .../Globant.Selenium.Axe/AxeResultCheck.cs | 14 +++++ .../Globant.Selenium.Axe/AxeResultNode.cs | 6 +-- .../AxeResultRelatedNode.cs | 11 ++++ .../Globant.Selenium.Axe.csproj | 22 ++++---- .../Resources/axe.min-old.js | 15 ++++++ .../Globant.Selenium.Axe/Resources/axe.min.js | 9 ++-- .../Globant.Selenium.Axe/packages.config | 4 +- 14 files changed, 192 insertions(+), 61 deletions(-) create mode 100644 Globant.Selenium.Axe/Globant.Selenium.Axe.Test/app.config create mode 100644 Globant.Selenium.Axe/Globant.Selenium.Axe/AxeResultCheck.cs create mode 100644 Globant.Selenium.Axe/Globant.Selenium.Axe/AxeResultRelatedNode.cs create mode 100644 Globant.Selenium.Axe/Globant.Selenium.Axe/Resources/axe.min-old.js diff --git a/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/AxeBuilderTest.cs b/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/AxeBuilderTest.cs index 89428a0..02c548c 100644 --- a/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/AxeBuilderTest.cs +++ b/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/AxeBuilderTest.cs @@ -53,12 +53,15 @@ public void ShouldExecuteAxeScript() .Setup(js => js.ExecuteAsyncScript(It.IsAny(), It.IsAny())) .Returns(new { - violations = new object[] { }, - passes = new object[] { }, - inapplicable = new object[] { }, - incomplete = new object[] { }, - timestamp = DateTimeOffset.Now, - url = "www.test.com", + results = new + { + violations = new object[] { }, + passes = new object[] { }, + inapplicable = new object[] { }, + incomplete = new object[] { }, + timestamp = DateTimeOffset.Now, + url = "www.test.com", + } }); var builder = new AxeBuilder(driver.Object); diff --git a/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/Globant.Selenium.Axe.Test.csproj b/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/Globant.Selenium.Axe.Test.csproj index 3637eca..f079c28 100644 --- a/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/Globant.Selenium.Axe.Test.csproj +++ b/Globant.Selenium.Axe/Globant.Selenium.Axe.Test/Globant.Selenium.Axe.Test.csproj @@ -17,6 +17,8 @@ False UnitTest + + true @@ -37,31 +39,36 @@ - ..\packages\Castle.Core.4.2.1\lib\net45\Castle.Core.dll + ..\packages\Castle.Core.4.3.1\lib\net45\Castle.Core.dll - - ..\packages\FluentAssertions.4.19.2\lib\net45\FluentAssertions.dll - True + + ..\packages\FluentAssertions.5.6.0\lib\net45\FluentAssertions.dll - - ..\packages\FluentAssertions.4.19.2\lib\net45\FluentAssertions.Core.dll - True + + ..\packages\Moq.4.10.1\lib\net45\Moq.dll - - ..\packages\Moq.4.7.142\lib\net45\Moq.dll - - - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll - True + + ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll + + + ..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll + - - ..\packages\Selenium.WebDriver.2.53.0\lib\net40\WebDriver.dll - True + + ..\packages\Selenium.WebDriver.3.141.0\lib\net45\WebDriver.dll + + + ..\packages\Selenium.Support.3.141.0\lib\net45\WebDriver.Support.dll @@ -88,9 +95,8 @@ - - Designer - + + @@ -112,6 +118,15 @@ + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + +