Closed cvolpe-ecobee closed 3 years ago
I followed the documentation for setting a viewport in the config file, but when I do so I get the following error when pa11y tries to run:
Error: page.setRequestInterception is not a function
Expectation When setting a viewport in the pa11y config file, the test execution runs as expected against the given viewport.
Actual I get the following error when setting a viewport in the config file:
Additional info
Config file:
{ standard: 'WCAG2AA', defaults: { headers: { Authorization: `Basic ${auth}`, }, wait: '1000', page: { viewport: { width: 320, height: 480, isMobile: true }, }, concurrency: 5, runners: ['axe'], }, urls: [ "http://www.example.com", ], }
Have a look at PR https://github.com/pa11y/pa11y-ci/pull/104
Thanks @42tte!
Hopefully this is fixed now, please reopen the issue if not.
I followed the documentation for setting a viewport in the config file, but when I do so I get the following error when pa11y tries to run:
Error: page.setRequestInterception is not a function
Expectation When setting a viewport in the pa11y config file, the test execution runs as expected against the given viewport.
Actual I get the following error when setting a viewport in the config file:
Error: page.setRequestInterception is not a function
Additional info
Config file: