From c48628413a7011025e930af7755bea5d52c4df01 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Fri, 8 Apr 2022 00:55:07 +0530 Subject: [PATCH] [MM-39661] MM-T827 Select Next/Previous Tab (#1964) * MM-T827 added * package.json revert * robotjs taps induced * Switched commands to ctrl-tab and ctrl-shift-tab Co-authored-by: Devin Binnie --- e2e/specs/menu_bar/window_menu.test.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/e2e/specs/menu_bar/window_menu.test.js b/e2e/specs/menu_bar/window_menu.test.js index f5bde557..c626627e 100644 --- a/e2e/specs/menu_bar/window_menu.test.js +++ b/e2e/specs/menu_bar/window_menu.test.js @@ -96,6 +96,21 @@ describe('Menu/window_menu', function desc() { tabViewButton.should.equal('Channels'); }); + it('MM-T827 select next/previous tab', async () => { + const mainView = this.app.windows().find((window) => window.url().includes('index')); + + let tabViewButton = await mainView.innerText('.active'); + tabViewButton.should.equal('Channels'); + + robot.keyTap('tab', ['control']); + tabViewButton = await mainView.innerText('.active'); + tabViewButton.should.equal('Boards'); + + robot.keyTap('tab', ['shift', 'control']); + tabViewButton = await mainView.innerText('.active'); + tabViewButton.should.equal('Channels'); + }); + it.skip('MM-T824 should be minimized when keyboard shortcuts are pressed', async () => { const browserWindow = await this.app.browserWindow(await this.app.firstWindow()); const mainWindow = this.app.windows().find((window) => window.url().includes('index'));