Desktop E2E Test: MM-T1288 Keyboard Shortcuts in Settings Page
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/settings/keyboard_shortcuts.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:
- Open the Settings Window
- Type something in the spellchecker languages text box.
- Use CtrlC and then CtrlA and then CtrlV. Verify that the text reappears.
Expected: See above.
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
Sorry @devinbinnie, cant find time as of now 😦
Oh Okay. Found it on Mac, I guess I will have to write separate tests using
if-elsefor darwin and other processes. I will take this up.