Update requests in web_project_file_source test
Based on discussion , Projects::BlobController
has been refactored to use GraphQL. We need to update web_project_file_source
if /blob/master/${project['file_source_path']}?format=json
call has been deprecated and ensure we emulate all required web calls on this page.
We're using highlightjs to highlight the files on the frontend instead of the backend (graphql = raw file/faster, show.json = highlight file/slower)
Highlightjs doesn't highlight ALL the languages.
The languages that aren't supported, we fall back to show.json
That equates to less than 8% of blob pages rendered gitlab-org/gitlab#365442 (comment 1065768246)
Related to gitlab-org/gitlab#247878 (comment 1070532469) and https://gitlab.slack.com/archives/CNU5W2F5M/p1660913800587909?thread_ts=1657629926.366419&cid=CNU5W2F5M