-
Notifications
You must be signed in to change notification settings - Fork 676
Configure request timeouts (close #2940) #5692
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
Configure request timeouts (close #2940) #5692
Conversation
❌ Tests for the commit 6cb45ea have failed. See details: |
❌ Tests for the commit f816c65 have failed. See details: |
❌ Tests for the commit ca967f8 have failed. See details: |
✅ Tests for the commit ca967f8 have passed. See details: |
it('Click on link', () => { | ||
return runTests('testcafe-fixtures/switching-to-child/click-on-link.js'); | ||
}); | ||
if (config.useLocalBrowsers && !config.useHeadlessBrowsers) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is the !config.useHeadlessBrowsers
condition. However, if we remove the separate multiple-windows
task we will have only the test-functional-local-headless-chrome
. Thus, these tests will be ignored
613ee90
to
74b957f
Compare
❌ Tests for the commit 794488b have failed. See details: |
❌ Tests for the commit 794488b have failed. See details: |
1 similar comment
❌ Tests for the commit 794488b have failed. See details: |
✅ Tests for the commit 794488b have passed. See details: |
FPR |
src/cli/argument-parser.ts
Outdated
@@ -131,6 +133,8 @@ export default class CLIArgumentParser { | |||
.option('--selector-timeout <ms>', 'specify the time within which selectors make attempts to obtain a node to be returned') | |||
.option('--assertion-timeout <ms>', 'specify the time within which assertion should pass') | |||
.option('--page-load-timeout <ms>', 'specify the time within which TestCafe waits for the `window.load` event to fire on page load before proceeding to the next test action') | |||
.option('--page-request-timeout <ms>', 'specify the time within which page request should be completed') | |||
.option('--ajax-request-timeout <ms>', 'specify the time within which ajax request (xhr or fetch) should be completed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.option('--page-request-timeout <ms>', 'specify the time within which the request for page's HTML should be completed')
.option('--ajax-request-timeout <ms>', 'specify the time within which AJAX requests (XHR or fetch) should be completed')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although... We should wait for Dirk...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked with Dirk:
.option('--page-request-timeout <ms>', 'specifies the timeout in milliseconds to complete the request for the page's HTML')
.option('--ajax-request-timeout <ms>', 'specifies the timeout in milliseconds to complete the AJAX requests (XHR or fetch)')
src/cli/argument-parser.ts
Outdated
@@ -131,6 +133,8 @@ export default class CLIArgumentParser { | |||
.option('--selector-timeout <ms>', 'specify the time within which selectors make attempts to obtain a node to be returned') | |||
.option('--assertion-timeout <ms>', 'specify the time within which assertion should pass') | |||
.option('--page-load-timeout <ms>', 'specify the time within which TestCafe waits for the `window.load` event to fire on page load before proceeding to the next test action') | |||
.option('--page-request-timeout <ms>', 'specify the time within which page request should be completed') | |||
.option('--ajax-request-timeout <ms>', 'specify the time within which ajax request (xhr or fetch) should be completed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked with Dirk:
.option('--page-request-timeout <ms>', 'specifies the timeout in milliseconds to complete the request for the page's HTML')
.option('--ajax-request-timeout <ms>', 'specifies the timeout in milliseconds to complete the AJAX requests (XHR or fetch)')
d73c793
to
f780b94
Compare
f780b94
to
7313dc9
Compare
❌ Tests for the commit 7313dc9 have failed. See details: |
1 similar comment
❌ Tests for the commit 7313dc9 have failed. See details: |
❌ Tests for the commit a1c51ca have failed. See details: |
❌ Tests for the commit a1c51ca have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
4 similar comments
❌ Tests for the commit c40cef8 have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
❌ Tests for the commit c40cef8 have failed. See details: |
✅ Tests for the commit c40cef8 have passed. See details: |
Changes:
pageRequestTimeout
,ajaxRequestTimeout
optionssrc/test-run/client-messages.js
andsrc/test-run/phase.ts
files to TypeScriptRelated PR in hammerhead.