Make native event test in autosave_spec.js synchronous
What does this MR do?
Migrates one test case in spec/frontend/autosave_spec.js
from asynchronous to synchronous.
This is necessary for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31967.