[backend] wait_for_ajax rather than sleeping for an arbitrary point of time

Conflicts:
	backend/spec/requests/admin/orders/order_details_spec.rb
	backend/spec/requests/admin/products/stock_management_spec.rb