Add integration tests for custom project templates pagination
### Summary
The custom project templates pagination currently lacks integration tests despite being a highly used feature.
It has already broken on multiple occasions (https://gitlab.com/gitlab-org/gitlab/-/issues/456061, https://gitlab.com/gitlab-org/gitlab/-/issues/500039).
We should add integration tests for this feature so that we can catch these regressions early.
issue