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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"not OperaMobile > 0"
],
"devDependencies": {
"@axe-core/playwright": "^4.10.1",
"@babel/core": "7.26.0",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.26.0",
Expand All @@ -54,6 +55,7 @@
"@vue/compiler-dom": "3.5.13",
"@vue/compiler-sfc": "3.5.13",
"@vue/test-utils": "2.4.6",
"axe-core": "^4.10.2",
Copy link
Member

Choose a reason for hiding this comment

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

this should not be required when using @axe-core/playwright

Suggested change
"axe-core": "^4.10.2",

"browserslist-to-esbuild": "^2.0.0",
"browserslist-useragent-regexp": "^4.0.0",
"commander": "13.1.0",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions tests/e2e/cucumber/features/a11y/a11y.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Feature: Accessibility

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


Scenario: check accessibility of files view
Given "Admin" creates following users using API
| id |
| Alice |
And "Alice" uploads the following local file into personal space using API
| localFile | to |
| filesForUpload/lorem.txt | lorem.txt |
| filesForUpload/testavatar.jpg | testavatar.jpg |
And "Alice" adds the following tags for the following resources using API
| resource | tags |
| lorem.txt | test-tag |
| testavatar.jpg | test-tag |

When "Alice" logs in
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the files section in default table view

When "Alice" switches to the condensed table view
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the files section in condensed table view

When "Alice" switches to the tiles-view
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the files section in tiles view
Given "Alice" switches to the default table view

When "Alice" selects the display options
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the display options menu
Given "Alice" closes the display options menu

When "Alice" opens the files context menu
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the files context menu
Given "Alice" exits the files context menu

When "Alice" selects new
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the new context menu

When "Alice" selects the folder option within the new context menu
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the create new folder popup
Given "Alice" cancels creating a new folder

When "Alice" selects upload
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the upload context menu
Given "Alice" exits the upload menu

When "Alice" selects a file by selecting the corresponding checkbox
Then "Alice" should not encounter any automatically detectable accessibility issues concerning the file actions buttons for that file
Given "Alice" deselects the file
Loading