You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing in a browser (and page) object in config, for example as a workaround to #237, pa11y-ci completes the analysis successfully, but then hangs.
(this is a Windows 11 example, but occurs in Linux as well)
PS C:\pa11y-ci> node ./bin/pa11y-ci.js -c .pa11yci-dark.js https://github.com
Running Pa11y on 1 URLs:
> https://github.com/ - 5 errors
... (details for 5 errors)
... (process hangs until killed)
There are a couple of issues:
The primary issue is that the config is passed to pa11y, and properly handled there, but all of the browser logic in pa11y-ci is completely separate from pa11y. For example, in this case here pa11y-ci will open an unnecessary browser that is never used, and there's no way to manage the browser from config.
Because the browser is opened in config there's no way to close it. At the end of the run the exitCode is set to one of 3 values here, and that lgoic is executed, but that doesn't force the process to exit. If these are changed to calls to exit() with the appropriate exit code it does for the process to exit.
The text was updated successfully, but these errors were encountered:
When passing in a
browser
(andpage
) object in config, for example as a workaround to #237, pa11y-ci completes the analysis successfully, but then hangs.For example:
.pa11yci-dark.js
(this is a Windows 11 example, but occurs in Linux as well)
There are a couple of issues:
exitCode
is set to one of 3 values here, and that lgoic is executed, but that doesn't force the process to exit. If these are changed to calls toexit()
with the appropriate exit code it does for the process to exit.The text was updated successfully, but these errors were encountered: