-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout is ignored (on Jenkins) #61
Comments
Hey @Stephs15, would it be possible to see your full config (with URLs anonymised)? Thanks |
Hi! Srry for the delay. Here it is :) const defaults = {
standard: "WCAG2A",
ignore: [ "notice", "warning"],
chromeLaunchConfig: {
args: ["--no-sandbox"]
}
};
let urls = [
{
url: '${URL}',
timeout: 5000000, //Big timeout just to test
rootElement: '.some__box',
actions: [
"navigate to ${URL}/url-to-add-articles-to-cart",
"navigate to ${URL}/",
'wait for element #goToCart to be visible',
"click element #goToCart",
"wait for url to be ${URL}/cart-url"
]
},
];
function conf() {
for (let idx = 0; idx < urls.length; idx++) {
console.log(urls[idx].url.replace('${URL}', process.env.URL));
urls[idx].url = urls[idx].url.replace('${URL}', process.env.URL);
for (let ida = 0; ida < urls[idx].actions.length; ida++) {
urls[idx].actions[ida] = urls[idx].actions[ida].replace('${URL}', process.env.URL);
}
}
return {
defaults: defaults,
urls: urls
};
}
// Important ~ call the function, don't return a reference to it!
module.exports = conf(); |
@rowanmanning
(can't provide whole config, also the individual timeouts are also ignored) |
Ok - now I understand that there are two timeouts: So what happen was that for me a test was waiting for an element to appear - which did not appear in 30 seconds so the test failed with "30 second" timeout instead of my configured 10000 second timeout. |
Is there a way to override the 30 second timeout? My understanding is that this comes from puppeteer. Also separate question, is there a reason pa11y-ci uses puppeteer version ~1.20.0 when puppeteer is up to 5.5.0? |
We are also facing similar issue. Any way to solve timeout issue? |
I am trying to run the accessibility tests on Jenkins (with CentOS) and I am having a weird issue with the config files. When I use a .json configuration file, works fine. But when I use a .js file to dynamically generate the urls it ignores the timeout set for the url. I just get
no matter the timeout that I specify. I tried also to put the timeout under default, but is the same result. Locally everything runs fine.
Here is the part where I set the urls and actions. After, there is a loop that replaces ${TEST_URL} for the real one. Sadly, I cannot give the real urls.
The text was updated successfully, but these errors were encountered: