-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
pa11y-ci Github page has following note: Providing a sitemap will cause the urls property in your JSON config to be ignored.
Looks like the statement is incorrect. Providing sitemap as a parameter and having config with uurls, actually includes the urls in the test.
Here is example repo with instructions to replicate the problem.
At the moment, there isn't a test case with config and sitemap. Add the following test to cli-sitemap.test.js
and the test will fail.
describe('pa11y-ci (with a sitemap being sitemapindex) and config. should ignore config urls', () => {
before(() => {
return global.cliCall([
'--sitemap',
'http://localhost:8090/sitemapindex.xml',
'--config',
'extension-json'
]);
});
it('loads the expected urls from multiple sitemaps', () => {
assert.notInclude(global.lastResult.output, 'http://localhost:8090/config-extension-json');
assert.include(global.lastResult.output, 'http://localhost:8090/passing-1');
assert.include(global.lastResult.output, 'http://localhost:8090/failing-1');
assert.include(global.lastResult.output, 'http://localhost:8090/excluded');
assert.include(global.lastResult.output, 'http://localhost:8090/passing-2');
});
});
I'm not sure if the documentation or code is correct. My assumption is that the documentation is correct
danyalaytekin