diff --git a/e2e/specs/menu_bar/file_menu.test.js b/e2e/specs/menu_bar/file_menu.test.js index 5287ff29..33f0ad55 100644 --- a/e2e/specs/menu_bar/file_menu.test.js +++ b/e2e/specs/menu_bar/file_menu.test.js @@ -56,4 +56,28 @@ describe('file_menu/dropdown', function desc() { signInToAnotherServerWindow.should.not.be.null; } }); + + it('MM-T804 Preferences in Menu Bar open the Settings page', async () => { + if (process.platform !== 'darwin') { + const mainWindow = this.app.windows().find((window) => window.url().includes('index')); + mainWindow.should.not.be.null; + robot.keyTap(',', ['control']); + const settingsWindow = await this.app.waitForEvent('window', { + predicate: (window) => window.url().includes('settings'), + }); + settingsWindow.should.not.be.null; + robot.keyTap('w', ['control']); + + //Opening the menu bar + robot.keyTap('alt'); + robot.keyTap('enter'); + robot.keyTap('f'); + robot.keyTap('s'); + robot.keyTap('enter'); + const settingsWindowFromMenu = await this.app.waitForEvent('window', { + predicate: (window) => window.url().includes('settings'), + }); + settingsWindowFromMenu.should.not.be.null; + } + }); });