Quality is not an act, it is a habit.
Different automation pitfalls appearing in modern web applications are described and emulated below.
Make sure you are not recording dynamic IDs of elements
Check that class attribute based XPath is well formed
Verify that your test does not interact with elements invisible because of z-order
Ensure that a test is capable of waiting for a page to load
Some elements may appear on a page after loading data with AJAX request
Event based click on an element may not always work
Entering text into an edit field may not have effect