Fix for busted screenshot test

`preview-successful` is added via JS and there's no guarantee it will be added by the time the test has finished running. This change eliminates the race condition.