npm install commandtest script from package.json fileThe 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.
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 !
@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:
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
Most helpful comment
@shyedhu
Hello,
This issue has been resolved in
[email protected]. So, I'll close this issue.