-
Notifications
You must be signed in to change notification settings - Fork 672
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
Request hook added multiple times when using filter rule #2650
Comments
Hi @andrzej-kodify |
Hi @miherlosev |
@andrzej-kodify I've investigated the example and found the reason of the problem: |
I'm working on this |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow. |
…DevExpress#2650) (DevExpress#2834) * fix 'Request hook added multiple times when using filter rule ' (close DevExpress#2650) * revert back method name
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
If I initialize hook without filter like
const hook = new RequestLogger();
thenonRequest
andonResponse
are executed only once with running tests.But adding filter function seems like attaching new hook with each executed test.
What is the expected behavior?
I would expect that since it's the same
const
hook it won't get attached more than once.How would you reproduce the current behavior (if this is a bug)?
See below
Provide the test code and the tested page URL (if applicable)
https://github.com/andrzej-kodify/testcafe-requesthook-bug
Specify your
The text was updated successfully, but these errors were encountered: