This test verifies that autocorrection is not applied when user dismisses correction panel by pressing ESC key.

After seeing the correction panel, press ESC key, then press space. You should see the phrase "the collaps" where "collaps" has red mispell underline.

Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'collapse' as the correct spelling of 'collaps' several times, the spell checker will not provide 'collapse' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.