testcafe
testcafe copied to clipboard
Property 'isAjax' does not exist on type 'RequestOptions'.
What is your Test Scenario?
Mock requests
What is the Current behavior?
RequestMock()
.onRequestTo(request => {
if (request.isAjax) {
// do something
}
})
Typescript error: Property 'isAjax' does not exist on type 'RequestOptions'.
What is the Expected behavior?
According to documentation, isAjax should exist in request parameter from RequestMock().onRequestTo(): https://devexpress.github.io/testcafe/documentation/reference/test-api/requestmock/onrequestto.html
Your Environment details:
- testcafe version: 1.9.3
@ruimarques, Thank you for your report. We've created a separate thread to address this issue. We would appreciate it if you contribute to fixing it. For more information, see our Contribution Guide.
This issue is not reproduced with [email protected].