Skip to content
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

Override method and/or body only for the first matching request #297

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

elacuesta
Copy link
Member

Closes #271

We need to identify the Playwright request that matches the Scrapy request in order to override method and body if necessary.
Checking the URL and Request.is_navigation_request() is not enough, e.g. requests produced by submitting forms can produce false positives.
Let's track only the first request that matches the above conditions.

@elacuesta elacuesta added the bug Something isn't working label Jul 11, 2024
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f3b1b25) to head (86ac0a4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #297   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          584       586    +2     
=========================================
+ Hits           584       586    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elacuesta elacuesta merged commit 1e3f184 into main Jul 11, 2024
16 checks passed
@elacuesta elacuesta deleted the identify-matching-request branch July 11, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Javascript not triggering in ASPX web page (works in regular playwright).
1 participant