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-T1288 Keyboard Shortcuts in Settings Page

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/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:

  1. Open the Settings Window
  2. Type something in the spellchecker languages text box.
  3. 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-39673

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
shadowshot-xcommented, Apr 3, 2022

Sorry @devinbinnie, cant find time as of now 😦

1reaction
shadowshot-xcommented, Jan 26, 2022

Oh Okay. Found it on Mac, I guess I will have to write separate tests using if-else for darwin and other processes. I will take this up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard shortcuts in Windows - Microsoft Support
Windows logo key + Shift + C · Open the charms menu. ; Windows logo key + Ctrl + C · Turn on...
Read more >
Mac keyboard shortcuts - Apple Support
Shift-Command-F: Open the Recents window, showing all of the files you viewed or changed recently. Shift-Command-G: Open a Go to Folder window.
Read more >
Default keyboard shortcuts in Adobe Photoshop
Hold down Ctrl (Windows) or Command (macOS) to scroll left (Page Up) or right (Page Down) ...
Read more >
Chrome keyboard shortcuts - Computer - Google Chrome Help
If you're on Mac Catalina and up, keyboard navigation is turned on by default in your system preferences. Tip: To focus your keyboard...
Read more >
Keyboard Shortcuts - Tableau Help
Shortcuts for managing workbooks, sheets, and files (Tableau Desktop) ; Description, Windows shortcut, Mac shortcut ; New workbook, Ctrl+N · Command+N ; New ......
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