tests: ignore pending GET requests when waiting for ajax

With apparition redirects will not contain response_parts
and therefore are interpreted as pending.

There does not seem to be a public interface
for checking if a request already returned a redirect response.

Since all the requests in question were GET requests
and they should not change state
ignore them when waiting for pending requests.
This commit is contained in:
Azul 2023-04-06 20:37:56 +02:00
parent fcc9d44b2c
commit 42cbae2d2b
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ module AjaxPending
# let's not worry about missing images
pending_requests.reject do |req|
req.url.include?('.png') or
req.url.include?('.jpg')
req.url.include?('.jpg') or
req.method == 'GET'
end
end