Use wait_for instead of sleep in change role specs

When the remote form AJAX succeeds, it adds a success class to the form. The two
specs that were using sleep now use wait_for, waiting until there is the success
class.