testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Property 'isAjax' does not exist on type 'RequestOptions'.

Open ruimarques opened this issue 6 years ago • 2 comments

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 avatar Sep 18 '20 09:09 ruimarques

@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.

Ogurecher avatar Sep 21 '20 08:09 Ogurecher

This issue is not reproduced with [email protected].

miherlosev avatar Mar 09 '21 07:03 miherlosev