Desktop E2E Test: MM-T4385 Select Tab from Menu
See original GitHub issueThis ticket is to create a test script to automate some testing for the Desktop App.
The testing framework makes use of a few frameworks to successfully automate Desktop App tasks:
- Playwright: An E2E testing framework provided by Microsoft that currently has “experimental” support for Electron. Using Playwright, you can access individual
BrowserWindowsorBrowserViewsand automate most functionality provided within those windows. You can also get access to the main Electron process and verify/check functionality in the main process. See here for docs: https://playwright.dev/docs/api/class-electron - RobotJS: A Node.JS Desktop Automation tool that allows us to arbitrary emulate mouse and keyboard inputs. This is used for automation around Electron keyboard shortcuts and the menu bar. It is useful to cover cases that aren’t automatable directly through Playwright (since the menu is not an HTML control). See here for docs: http://robotjs.io/docs/syntax
The test should be written in the file e2e/specs/menu_bar/window_menu.test.js
If the file doesn’t exist, feel free to create it.
If you’re looking for examples, see these PRs: https://github.com/mattermost/desktop/pull/1841 https://github.com/mattermost/desktop/pull/1843 https://github.com/mattermost/desktop/pull/1846
The test script for this ticket is as follows:
- Make sure you have at least 3 servers, each with all of their tabs visible.
- Using the menu or keyboard shortcut, go to Window and choose a different tab than the one you’re on.
- Repeat for the 3rd tab , and then go back to the original tab.
Expected: The tab views should change
If you’re interested please comment here and come join our “Contributors” community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our “Developers” community channel.
New contributors please see our Developer’s Guide.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)

Top Related StackOverflow Question
I would like to take this up.
Yes you are right! I have raised the PR with 3 servers in config