Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Axe Accessibility Driver files to be updated #90

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release

Expand All @@ -25,11 +25,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: 6.0.x
- name: Run Unit Tests
run: dotnet test --verbosity normal

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release

Expand All @@ -28,11 +28,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: 6.0.x
- name: Run Unit Tests
run: dotnet test --verbosity normal

Expand All @@ -41,11 +41,11 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Publish nuget
Expand Down
8 changes: 2 additions & 6 deletions AxeAccessibilityDriver/AxeAccessibilityDriver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Run Axe for accessibilty scan
Output results into json, csv and WATR report</Description>
Expand Down Expand Up @@ -32,10 +32,6 @@ Output results into json, csv and WATR report</Description>
<DocumentationFile>C:\GitHubProjects\AxeAccessibilityDriver\AxeAccessibilityDriver\AxeAccessibilityDriver\AxeAccessibilityDriver.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>C:\Users\DUONGCH\Projects\AxeAccessibilityDriver\AxeAccessibilityDriver\AxeAccessibilityDriver.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
<Compile Remove="AxeAccessibilityDriver\**" />
<Compile Remove="AxeTester\**" />
Expand All @@ -53,7 +49,7 @@ Output results into json, csv and WATR report</Description>
<PackageReference Include="log4net" Version="2.0.10" />
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="3.1.0" />
<PackageReference Include="NPOI" Version="2.4.1" />
<PackageReference Include="Selenium.Axe" Version="1.5.2" />
<PackageReference Include="Selenium.Axe" Version="4.0.14" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Binary file modified AxeAccessibilityDriver/WATR_Template.xlsx
Binary file not shown.
18,813 changes: 9,883 additions & 8,930 deletions AxeAccessibilityDriver/log.txt

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions AxeAccessibilityDriver/src/AxeDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace AxeAccessibilityDriver
{
//using Deque.AxeCore.Selenium;

Check warning on line 7 in AxeAccessibilityDriver/src/AxeDriver.cs

View workflow job for this annotation

GitHub Actions / build

Check warning on line 7 in AxeAccessibilityDriver/src/AxeDriver.cs

View workflow job for this annotation

GitHub Actions / build

//using Deque.AxeCore.Commons;

Check warning on line 8 in AxeAccessibilityDriver/src/AxeDriver.cs

View workflow job for this annotation

GitHub Actions / build

Check warning on line 8 in AxeAccessibilityDriver/src/AxeDriver.cs

View workflow job for this annotation

GitHub Actions / build

using System;
using System.Collections.Generic;
using System.IO;
Expand Down Expand Up @@ -85,11 +87,13 @@
public void CaptureResult(string providedPageTitle)
{
this.logger?.LogInformation($"Capturing Result for {providedPageTitle}");
this.Driver.Manage().Window.FullScreen();

// Here we are maximizing and making the page full screen, which we don't necessarility want
// this.Driver.Manage().Window.FullScreen();
AxeResult results = this.Driver.Analyze();

// check if there is any error. If there is, write it out
Console.WriteLine(results.Error);
// Console.WriteLine("Axe violations: " + results.Violations.ToString());

// map page information
if (!this.pageInfo.ContainsKey(results.Url))
Expand Down Expand Up @@ -357,7 +361,11 @@
RuleNodeInformation temp = new RuleNodeInformation()
{
HTML = resultNode.Html,
Target = resultNode.Target,

// original
// Target = resultNode.Target,

Check warning on line 366 in AxeAccessibilityDriver/src/AxeDriver.cs

View workflow job for this annotation

GitHub Actions / build

Single-line comments should not be followed by blank line (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1512.md)

Check warning on line 366 in AxeAccessibilityDriver/src/AxeDriver.cs

View workflow job for this annotation

GitHub Actions / build

Single-line comments should not be followed by blank line (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1512.md)

Target = resultNode.Target.ToString(),
};

// add into the results dictionary
Expand Down
2 changes: 1 addition & 1 deletion AxeAccessibilityDriver/src/RuleNodeInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class RuleNodeInformation
/// <summary>
/// Gets or sets the list of target HTML elements / information this rule has.
/// </summary>
public List<string> Target { get; set; }
public string Target { get; set; }
}
}
9 changes: 4 additions & 5 deletions AxeTester/AxeTester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetSeleniumExtras.WaitHelpers" Version="3.11.0" />
<PackageReference Include="Selenium.Axe" Version="1.5.2" />
<PackageReference Include="Selenium.Support" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="85.0.4183.8700" />
<PackageReference Include="Selenium.Axe" Version="4.0.14" />
<PackageReference Include="Selenium.Support" Version="4.16.2" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="119.0.6045.10500" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
11 changes: 2 additions & 9 deletions docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link rel="stylesheet" href="../styles/docfx.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:tocrel" content="../toc.html">



Expand Down Expand Up @@ -57,14 +57,7 @@
</div>
</header>
<div role="main" class="container body-content hide-when-search">

<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="article row grid">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="">
<h1 id="api-documentation">Api Documentation</h1>
Expand Down
144 changes: 3 additions & 141 deletions docs/manifest.json
Original file line number Diff line number Diff line change
@@ -1,147 +1,15 @@
{
"homepages": [],
"source_base_path": "C:/Users/DuongCh/Projects/AxeAccessibilityDriver/AxeAccessibilityDriver",
"source_base_path": "C:/Users/ZhengVi/Documents/GitHub-victor-zheng-codes/AxeAccessibilityDriver/AxeAccessibilityDriver",
"xrefmap": "xrefmap.yml",
"files": [
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.AxeDriver.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.AxeDriver.html",
"hash": "jluK5mAxWtvQAqAdkxd3xQ=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.AxeResultType.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.AxeResultType.html",
"hash": "ozFdSh2Sfjyw+I32DTrs3A=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.IAccessibilityChecker.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.IAccessibilityChecker.html",
"hash": "ivydgxjt5csw0wYkR71FVA=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.IssueLog.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.IssueLog.html",
"hash": "uqMGUSsAiHsJKfAVYHKLCQ=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.PageInformation.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.PageInformation.html",
"hash": "MKqR9Lu8KjFkcqUPlg6n6g=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.ResourceHelper.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.ResourceHelper.html",
"hash": "mijAhLm2QLir6BWsDzTtEA=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.RuleInformation.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.RuleInformation.html",
"hash": "eoBPRvN97kUTyKRup0EZLw=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.RuleNodeInformation.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.RuleNodeInformation.html",
"hash": "t4aj0W4nOufBKMBB6XaPNQ=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.TestReportExcel.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.TestReportExcel.html",
"hash": "O9V92+qs6JZHXz6H5uqwew=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "ManagedReference",
"source_relative_path": "api/AxeAccessibilityDriver.yml",
"output": {
".html": {
"relative_path": "api/AxeAccessibilityDriver.html",
"hash": "4QdVjgxm+4eRJ9kb31mbCg=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "Conceptual",
"source_relative_path": "api/index.md",
"output": {
".html": {
"relative_path": "api/index.html",
"hash": "dd/qGr+hPfdC42rnjQs8wQ=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "Toc",
"source_relative_path": "api/toc.yml",
"output": {
".html": {
"relative_path": "api/toc.html",
"hash": "IlYiS+SRUP4E9p6a6meMdg=="
"hash": "07pX1GswdANbI3T5cCd3DA=="
}
},
"is_incremental": false,
Expand Down Expand Up @@ -225,7 +93,7 @@
"output": {
".html": {
"relative_path": "toc.html",
"hash": "+rHUkRZHZRi5gd1aTU6lJA=="
"hash": "IGK1ZSYI4NbShXZSeUUd6Q=="
}
},
"is_incremental": false,
Expand All @@ -249,12 +117,6 @@
"total_file_count": 6,
"skipped_file_count": 0
},
"ManagedReferenceDocumentProcessor": {
"can_incremental": false,
"incrementalPhase": "build",
"total_file_count": 10,
"skipped_file_count": 0
},
"TocDocumentProcessor": {
"can_incremental": false,
"details": "Processor TocDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.",
Expand Down
2 changes: 1 addition & 1 deletion docs/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="articles/intro.html" name="articles/toc.html" title="Articles">Articles</a>
</li>
<li>
<a href="api/index.html" name="api/toc.html" title="Api Documentation">Api Documentation</a>
<a href="api/index.html" name="" title="Api Documentation">Api Documentation</a>
</li>
</ul>
</div>
Expand Down
Loading