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

[tests-only] accessibility test for basic functionalities of file view #12155

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

koebel
Copy link
Contributor

@koebel koebel commented Feb 4, 2025

Description

setup axe core and implementation of most important accessibility tests for file view

  • add initial test setup for axe-core
  • create feature
  • add step implementation
  • create a11y page object
  • update dependencies
  • report accessibility findings

Related Issue

Motivation and Context

make sure that oCIS web is compliant with the WCAG accessibility standards

As a user with limited accessibility
I want to be able to access all features of oCIS
So that regardless of my abilities and circumstances, I can benefit from oCIS

How Has This Been Tested?

  • test cases are passing
  • currently some test cases contain excludes for components with know accessibility issues (TODO: link to report of findings)

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • ...

Copy link

update-docs bot commented Feb 4, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@koebel koebel self-assigned this Feb 4, 2025
@koebel koebel requested a review from saw-jan February 5, 2025 04:22
@koebel koebel changed the title accessibility test for basic functionalities of file view [tests-only] accessibility test for basic functionalities of file view Feb 5, 2025
tests/e2e/cucumber/features/a11y/a11y.feature Outdated Show resolved Hide resolved
tests/e2e/cucumber/features/a11y/a11y.feature Outdated Show resolved Hide resolved
tests/e2e/support/objects/a11y/actions.ts Outdated Show resolved Hide resolved
Comment on lines +54 to +56
// excluded for known accessibility issues
// selectors.resourceTableEditName --> buttons must have discernible text
// selectors.resourceIconLink --> buttons/links must have discernible text
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to decide how to track those issues that we skip here, if developers fix them I doubt that they will remember to change the test

tests/e2e/support/objects/a11y/actions.ts Outdated Show resolved Hide resolved
async function (this: World, stepUser: string): Promise<void> {
const { page } = this.actorsEnvironment.getActor({ key: stepUser })

const a11yObject = new objects.a11y.Accessibility({ page })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confused about the name of the pageObject

tests/e2e/support/objects/a11y/actions.ts Outdated Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Feb 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants