Hi I am facing this issue with my test-cases written in PhantomJS:
PhantomJS 2.0.0 (Windows 8) ERROR. Some of your tests did a full page reload.
At one place I have window.location.href in my code (when I do not find something stored in the cookie , I redirect it to some page).
appEntryRoute:function(username, enroll){
if(username != null || username != undefined){
var encodeUsername = Application.utils.encodeToBase64(username);
Application.utils.setCookie("username",encodeUsername);
if(enroll == "true"){
module.getChannel("shared").then(function(ch){
ch.request("startSession",username);
});
Application.navigate("manage/tenant");
} else {
Application.navigate("");
}
} else {
window.location.href= Application.getConfig("logoutSuccess");
}
}
But it has nothing to do with my test cases and I am getting this error. If I comment the window.location.href line, the tests run fine. Can anyone please help me suggest what exactly is causing this and how to get rid of this issue?
Aucun commentaire:
Enregistrer un commentaire