test:Signin to another server open using menu bar (#1972)
This commit is contained in:
parent
ac628bf930
commit
d58df0062f
|
@ -39,4 +39,21 @@ describe('file_menu/dropdown', function desc() {
|
|||
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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue