[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 <devin.binnie@mattermost.com>
This commit is contained in:
Ujjwal Sharma
2022-04-08 00:55:07 +05:30
committed by GitHub
parent b81559b380
commit c48628413a

View File

@@ -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'));