Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryan-l-robinson/playwright-axe-docker-gitlab
Dockerfile and GitLab CI/CD for building an axe with playwright testing container
https://github.com/ryan-l-robinson/playwright-axe-docker-gitlab
Last synced: 3 days ago
JSON representation
Dockerfile and GitLab CI/CD for building an axe with playwright testing container
- Host: GitHub
- URL: https://github.com/ryan-l-robinson/playwright-axe-docker-gitlab
- Owner: ryan-l-robinson
- Created: 2023-12-15T21:40:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-08T19:18:03.000Z (12 months ago)
- Last Synced: 2024-11-06T05:13:07.359Z (about 2 months ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playwright-axe-Docker-GitLab
This project builds a testing image with playwright and axe-core accessibility testing, and stores it in the GitLab container registry. This avoids building it every time the job is invoked.
This can be invoked as the image for GitLab CI/CD scripts on specific projects. See some examples of that in the [GitLab CI/CD demo project](https://github.com/ryan-l-robinson/GitLab-CI-CD). To access the image and run the tests:
1. Pass in any variables or prepare any other prerequisites such as files in the correct locations for the tests.
2. Approve that this image can be used by the other project, from this GitLab project -> Settings -> CI/CD -> Access Tokens.Tests are structured to allow for some tests that run only on a separate local container, some that run only on CI/CD (within this container), and some that run on both. Tests are also split up between those that run on both desktop and mobile browsers and those that only run on mobile. This allows for combining project-specific tests with the general one provided here.
One general CI/CD test is included, which reads from the sitemap and reports on any vulnerabilities detected by axe-core. This requires that the sitemap is copied to /opt/playwright/sitemap.xml.