github-pages-template icon indicating copy to clipboard operation
github-pages-template copied to clipboard

Allow to skip testing for URLs

Open fulldecent opened this issue 1 year ago • 3 comments

Automated testing for twitter.com always fails.

Let's find a way to skip this an other URLs as needed:

Work plan

  • [x] Add file tests/skip-urls.regex.txt
    • [x] Add https://dont-check-this.example.com
    • [x] Add https://..twitter.com/.
  • [x] Load and use this file from plugin.html-validate.external-links.mjs
  • [x] Add a test fixture with link to https://dont-check-this.example.com and ensure it is not fetched

fulldecent avatar Apr 15 '24 19:04 fulldecent

Please add a new test so you can see if this feature is actually working

fulldecent avatar Apr 17 '24 13:04 fulldecent

OK, I added this one in external links test.

Raza403 avatar Apr 17 '24 14:04 Raza403

Good ready to deploy this to all sites now

fulldecent avatar Apr 18 '24 12:04 fulldecent

This is deployed

fulldecent avatar Jul 15 '24 13:07 fulldecent