[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:
@@ -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'));
|
||||
|
Reference in New Issue
Block a user