pa11y / pa11y-ci

Pa11y CI is a CI-centric accessibility test runner, built using Pa11y
https://pa11y.org
GNU Lesser General Public License v3.0
519 stars 63 forks source link

Error when setting viewport in .pa11yci config file #107

Closed cvolpe-ecobee closed 3 years ago

cvolpe-ecobee commented 4 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:

Error: page.setRequestInterception is not a function

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",
    ],
}
42tte commented 4 years ago

Have a look at PR https://github.com/pa11y/pa11y-ci/pull/104

cvolpe-ecobee commented 4 years ago

Thanks @42tte!

josebolos commented 3 years ago

Hopefully this is fixed now, please reopen the issue if not.