question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Desktop E2E Test: MM-T2827 Copy and Paste when connecting Jira plugin

See original GitHub issue

This 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 BrowserWindows or BrowserViews and 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:

  1. Ensure the test config is using the Demo Mattermost server, and make sure the app opens on said server.
  2. Login to the demo server
  3. In the message box, type /jira connect. Verify that a new window opens.
  4. Type something in the username box.
  5. 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.

JIRA: https://mattermost.atlassian.net/browse/MM-39796

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mickmistercommented, Feb 21, 2022

I’m curious would the demo plugin have a popup window that we could test with? If not, could we add one? The reason is that I still want to test the plugin pop-up flow, and those only fire if the URL is of the form http://myserver.com/plugins/<whatever>.

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.

1reaction
mickmistercommented, Feb 3, 2022

I’d like to work on this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can you copy and paste when editing info panel(s) in a JIRA ...
When introduced one could copy and paste easily within the info panel. it was quite good to have the feeling one could now...
Read more >
why won't copy and paste work? - Atlassian Community
I can confirm that copy and paste works as expected in my Confluence ... Other browsers you can test include Firefox or Chrome,...
Read more >
How to create and manage test cases with Xray and Jira
Step-by-step instructions on how to write, specify, organize, and execute test cases with Xray Test Management in Jira.
Read more >
Writing integration tests for your JIRA add-on
This tutorial shows you how to write integration tests for a plugin. ... To clone the repository, issue the following command: Copy.
Read more >
How to copy/paste Jira Issue Id and Title with minimal effort?
I've tested on my local environment and there is no easy way to copy both fields and paste it without needing to edit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found