🚨 Work in Progress 🚨
The provided scripts are designed to monitor color contrast issues, specifically for dark mode. The process involves creating test cases based on the top Wikipedia articles and running accessibility tests using pa11y axe-core. The results are logged to the console and a CSV file, capturing color contrast violations.
Color Contrast Tester
│
├── index.js
│
├── report/
│ ├── index.html
│ └── simplifiedList.csv
│
├── modules/
│ ├── csvWriter.js
│ ├── htmlGenerator.js
│ ├── topArticles.js
│ └── accessibility.test.js
│
└── README.md
-
Ensure you have the required environment variables set: MW_SERVER, MEDIAWIKI_USER, and MEDIAWIKI_PASSWORD.
-
Run the tests using the following command:
node index.js
node index.js --project fr.wikipedia --query "minervanightmode=1"
This tool is currently in development and should be used cautiously. Stay tuned for updates and improvements!