Fix firefox popup bug e2e

This commit is contained in:
Chi Vinh Le
2017-11-09 21:51:03 +01:00
parent 53461df287
commit 42a477ae41
+9 -1
View File
@@ -80,8 +80,16 @@ module.exports = {
// Focusing on the Embed Window
windowHandler.windowHandles((handles) => {
this.api.switchWindow(handles[0]);
this.parent.switchToIframe();
// For some reasons firefox does not automatically load auth after login.
// https://www.browserstack.com/automate/builds/37650cb4e66c6edce0ba0800a1c1b7e7f74bf991/sessions/7a4e9da69b0f9ecdf8b7fa9150639e47b1532cb0#automate_button
if (this.api.capabilities.browserName === 'firefox') {
this.parent.navigate().ready();
} else {
this.parent.switchToIframe();
}
});
return this;
},
logout() {
this