Add test for static pages
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=17274)
</details>
<!--IssueSummary end-->
We need to write javascript test spec for static error pages. But as those are served by NGinx and all resources JS, images, CSS are also static and written in `html` it makes to write test for those page harder. There is already a tech debt issue gitlab-ce#27860 to bundle the JS and CSS files.
issue