Fix new end-to-end test
What does this MR do?
This fix is based on the following comment in the MR that added the new test: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15857#note_211350873
This fix is based on the following comment in the MR that added the new test: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15857#note_211350873