switch_to_alert function error

$this->alert() doesn't exists and I believe its a typo error. I removed it and it all works.