test:Signin to another server open using menu bar (#1972)

This commit is contained in:
Suneet Srivastava 2022-01-28 20:17:39 +05:30 committed by GitHub
parent ac628bf930
commit d58df0062f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,4 +39,21 @@ describe('file_menu/dropdown', function desc() {
settingsWindow.should.not.be.null; settingsWindow.should.not.be.null;
} }
}); });
it('MM-T805 Sign in to Another Server Window opens using menu item', async () => {
if (process.platform === 'win32' || process.platform === 'linux') {
const mainWindow = this.app.windows().find((window) => window.url().includes('index'));
mainWindow.should.not.be.null;
robot.keyTap('alt');
robot.keyTap('enter');
robot.keyTap('f');
robot.keyTap('s');
robot.keyTap('s');
robot.keyTap('enter');
const signInToAnotherServerWindow = await this.app.waitForEvent('window', {
predicate: (window) => window.url().includes('newServer'),
});
signInToAnotherServerWindow.should.not.be.null;
}
});
}); });