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-T4385 Select Tab from Menu

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

  1. Make sure you have at least 3 servers, each with all of their tabs visible.
  2. Using the menu or keyboard shortcut, go to Window and choose a different tab than the one you’re on.
  3. 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.

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
shadowshot-xcommented, Jan 22, 2022

I would like to take this up.

0reactions
shadowshot-xcommented, Jan 24, 2022

Yes you are right! I have raised the PR with 3 servers in config

Read more comments on GitHub >

github_iconTop Results From Across the Web

Desktop E2E Test: MM-T1288 Keyboard Shortcuts in Settings ...
This is used for automation around Electron keyboard shortcuts and the menu bar. It is useful to cover cases that aren't automatable directly ......
Read more >
Selecting Tab Pages in Desktop Windows Applications
During the test run, TestComplete analyzes the control's class names and associates standard tab controls with the Win32TabControl object (see Object Mapping).
Read more >
Test Resources Module Menus and Buttons - ADM Help Centers
UI Element Menu Description Collapse View Collapses all branches in the test resource tree. Expand All View Expands all branches in the test resource tree. Rename...
Read more >
Can't select element from drop down menu E2E testing using ...
"Select" is the default choice that appears in the drop down menu, I want the automated test to pick one of the elements,...
Read more >
Playwright End To End Testing Tutorial: A Complete Guide
This Playwright end to end testing tutorial would guide you through its ... We will navigate the “Mega Menu” and select the Desktop...
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