Desktop E2E Test: MM-T2827 Copy and Paste when connecting Jira plugin
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/popup_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:
- Ensure the test config is using the Demo Mattermost server, and make sure the app opens on said server.
- Login to the demo server
- In the message box, type
/jira connect. Verify that a new window opens. - Type something in the username 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:7 (7 by maintainers)

Top Related StackOverflow Question
Yes we can add a popup to https://github.com/mattermost/mattermost-plugin-test to use here, which is usually used for automated tests like this.
I’d like to work on this