Upon refreshing the page, I encounter an error and receive the following alert:
Failed: Error occurs while waiting for Protractor to synchronize with the page: "both angularJS testability and angular testability are undefined. This may be due to either a non-angular page or because your test includes client-side navigation, which could disrupt Protractor's bootstrapping process. See for more information".
Here is the code snippet being used:
browser.refresh().catch(function(){
browser.switchTo().alert().then(function(alert){
alert.accept();
});