Wait for ajax to complete when editing components in Studio acceptance tests

Tests need to wait for ajax calls to complete when after pressing the edit button.
See cms/static/coffee/src/views/module_edit.coffee

@zubair-arbi @andy-armstrong