Testcafe-hammerhead: Text execution hangs on the click action

Created on 21 Dec 2020  路  8Comments  路  Source: DevExpress/testcafe-hammerhead

Steps to Reproduce:

  1. Clone the https://github.com/javenkn/testcafe-poc repository
  2. Run the npm install command
  3. Run the test script from package.json file

The test fails on the navigate to checkout step even if an element with the 'button[data-test="qa-cart-checkout"]' selector appears. It looks like TestCafe waites for AJAX requests' completion before a click.

Your Environment details:

  • node.js version: v12.18.0
  • browser name and version: Chrome 87.0.4280.88
  • platform and version: macOS 10.15.6
bug

Most helpful comment

@shyedhu

Hello,

This issue has been resolved in [email protected]. So, I'll close this issue.

All 8 comments

Thank you @aleks-pro for creating this issue

Hi @aleks-pro , Since we are blocked few e2e automation test runs due to that 222 response code, so can you please help to provide us an update for 2514. Thanks in advance !

@shyedhu, we still need time to research this issue. Once we get any results, we will post them here.

Hi @arubtsov Thank you for the update !

@shyedhu

Hello,

This issue has been resolved in [email protected]. So, I'll close this issue.

@Farfurix Thanks for your help ! 222 response code issue has been resolved , but it throws 403 error code which blocked my other test case execution


body:

'\nAccess Denied\n\n

Access Denied

\n \nYou don\'t have permission to access "http....

Can you please help to provide the solution to avoid 403 status code and how can we get right status code like 202 during my test run . i don't see kind of issue in other automation framework like nightwatchjs

I tried to set correct origin value on Access-Control-Allow-Origin header in CustRequestHook class and then add this into .requestHooks(logger,custRequestHook) in page.test.js , but it still throwing 403 error code ,Can you please help me on these?

import { RequestHook } from 'testcafe';

export default class CustRequestHook extends RequestHook {
  constructor (requestFilterRules, responseEventConfigureOpts) {
    super(requestFilterRules, responseEventConfigureOpts);
    // ...
}

  onResponse(event) {

event.headers['Access-Control-Allow-Origin']='xxxxxx';
  }
}

@shyedhu

Hello,

but it throws 403 error code which blocked my other test case execution

Could you please create a separate issue with a reproducible example? We need to examine your case on our side.

HI @Farfurix Here's new issue for your reference. https://github.com/DevExpress/testcafe-hammerhead/issues/2565
Please help us to unblock our e2e test execution . Thanks in advance

Was this page helpful?
0 / 5 - 0 ratings