Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Tests
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2022 at 09:59 UTC
Updated:
10 Nov 2022 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
nkoporecI found out that the sort field is never rendered when running the testViewSorts() and therefore the sort_by is never applied to the form, that is why the tests are failing. I'm not sure why exactly but adding the 'field_identifier' key to the view config for the sort filter fixes the issue and the field is correctly displayed.
Comment #5
drunken monkeyThanks a lot for investigating!
Very strange problem, but if the solution is this simple, then great. At least it definitely shouldn’t do any harm to change an exported test config.
Uploading your changes as a patch, as testing of forks doesn’t work in this project (cf. #3190024: Problem with test dependencies when testing issue forks).
Comment #7
drunken monkeyTest bot is happy as well, so let’s not waste any more time.
Committed. Thanks a lot again!