Commit graph

2414 commits

Author SHA1 Message Date
Devin Binnie 6803310217
[MM-35666] Re-ordered the priority of badge sources to leave session expired to last (#1955)
* Fixing some annoying things/stuff I broke

* [MM-35666] Re-ordered the priority of badge sources to leave session expired to last

* Fix tests
2022-01-25 09:51:25 -05:00
Alejandro García Montoro c43dfe6002
MM-41042: Allow trusted plugin routes (#1956)
* Allow trusted plugin routes

The only allowed plugin route is, for now, the export endpoint for the
channel export plugin.

* Keep it simple
2022-01-20 15:19:48 -05:00
Mylon Suren e446b13b34
[MM-39799] E2E Test: MM-T4050 Long server name (#1951)
* [MM-39799] - Add E2E tests for long server name

* [MM-39799] - Update test and css for max-width of tab

* [MM-39799] - Update max-width test to 400px
2022-01-20 09:51:54 -05:00
Sven Hüster 432af50ab3
change zoom in shortcut to match expected behavior (#1957) 2022-01-20 09:16:56 -05:00
Guillermo Vayá ba3f9a9c97
add a reminder on how to proceed with releases (#1656)
Co-authored-by: = <=>
2022-01-19 11:10:13 -05:00
Suneet Srivastava 9170930ada
[MM-39738] E2E test for Open Settings modal using keyboard shortcuts (#1947) 2022-01-18 23:27:32 +05:30
Devin Binnie 4a05b7c8d5
[MM-39852] Setup docker image to run in CI for E2E (#1946)
* [MM-39852] Setup docker image to run in CI for E2E

* Setup remote docker

* Install docker

* Trying this

* And this

* how about this

* this

* Okay this

* dis one

* sdfsagsdags

* Now?

* aaaaaaa

* asdasdasd

* i am dumb

* blank

* Please work

* Lint fix

* Forgot to update a couple things

* OOPS

* Testing something since this one is still failing

* Trying robotjs instead

* test

* Remove stop docker

* Try without the admin user (since apparently turning off admin notices didn't work)

* Remove console statement

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-17 10:20:11 -05:00
Julien Tant 6e8455e80e
Make WEBSERVER_PORT configurable with env variable (#1950) 2022-01-14 14:39:17 -05:00
Devin Binnie 4bdd8b7a45
[MM-40822] Remove app.dock.show from restoreMain (#1945)
* [MM-40822] Remove app.dock.show from restoreMain

* Removed the test
2022-01-12 09:38:45 -05:00
Sven Hüster 4d49f1bd38
change "tab" to "server" due to ui changes (#1948) 2022-01-12 09:36:01 -05:00
Devin Binnie 8f96fe42c7
[MM-32371] Communicate history information to webapp for disable/enabling Back/Forward buttons (#1941)
* [MM-32371] Communicate history information to webapp for disable/enabling Back/Forward buttons

* Merge'd
2022-01-10 17:38:23 -05:00
Colton Shaw 8ad949eedb
Menu > Help > version copied to clipboard on click (#1944) 2022-01-07 14:04:15 -05:00
Devin Binnie a49d748c16
[MM-40009] Add servers dropdown shortcut to menu (#1926)
* [MM-40009] Add servers dropdown shortcut to menu

* Lint fix

* Fix the shortcut for macOS

* Fix character
2022-01-06 10:40:19 -05:00
Devin Binnie adf494e944
[MM-36058][MM-40572] Tray fixes (#1933)
* [MM-36058] Added config migration function, update default tray icon theme to system, allow Windows users to override icon theme

* [MM-40572] Restore minimize to tray option for Windows

* Lint fix

* Test fix

* Oops
2022-01-04 15:00:56 -05:00
Devin Binnie 3ecdd3d1c9
[MM-26018] Added disclaimer for window flashing on Linux (#1927)
* [MM-26018] Added disclaimer for window flashing on Linux

* Update src/renderer/components/SettingsPage.tsx

Co-authored-by: Eric Sethna <eric@mattermost.com>

Co-authored-by: Eric Sethna <eric@mattermost.com>
2021-12-23 16:50:19 -05:00
Devin Binnie bd470459c2
[MM-40573] Stop asterisk detection on versions newer than 5.28, force space for the others (#1931)
* [MM-40573] Stop asking detection on versions newer than 5.29, force space for the others

* PR feedback and test fixes
2021-12-23 16:49:53 -05:00
Devin Binnie c28b219362
[MM-40635] Fix notifications and badges broken during test changes (#1934) 2021-12-23 16:49:12 -05:00
Devin Binnie 9a518e8e76
[MM-40632] Updates to the Developer Documentation and README, remove unnecessary files and code (#1922)
* [MM-40632] Updates to the Developer Documentation and README, remove unnecessary files and code

* Update CONTRIBUTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update README.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update README.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update TESTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update TESTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update TESTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update TESTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update TESTING.md

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: Guillermo Vayá <guivaya@gmail.com>

* Update TESTING.md

Co-authored-by: Guillermo Vayá <guivaya@gmail.com>

* PR feedback

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>
Co-authored-by: Guillermo Vayá <guivaya@gmail.com>
2021-12-17 15:00:35 -05:00
Devin Binnie 8474683ff1
[MM-40603] Add timeout for alt press to make sure it doesn't interfere with OS shortcuts (#1932)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-12-17 10:53:22 -05:00
Devin Binnie c4e63fb3f9
[MM-40574] Fix for race condition where new server modal didn't show initially on Linux, resizing issues (#1865)
* FIx for linux modal sizing

* Fix race condition, merge'd
2021-12-17 09:10:08 -05:00
Devin Binnie 9b1ee66c8c
[MM-32946][MM-40602] Ensure URL is valid before showing tooltip link, allow parsed URLs that aren't valid to open in browser (#1925)
* [MM-40602] Ensure URL is valid before showing tooltip link

* Rework to allow invalid URLs to display

* [MM-32946] Allow parsable URLs and open invalid URIs in browser
2021-12-16 10:06:11 -05:00
Devin Binnie 5ef1f56d63
Disable flaky test (#1928) 2021-12-15 16:17:44 -05:00
Profesor08 a410222e14
add hide on start option (#1919)
* add hide on start option (#1918)

* text update

* clean up

* removed `hideOnStart` from ConfigV1 & ConfigV2

* tests update
2021-12-13 15:19:59 +01:00
ChristophKaser fca6a75ee4
[GH-1635] don't validate custom protocol URLs (#1889)
* don't validate custom protocol URLs

* added unit tests for invalid URLs with custom protocols
2021-12-10 11:30:10 +01:00
Devin Binnie 39fbdf45c5
[MM-40406] Add more singletons, refactor main.ts into pieces, add tests and some cleanup + tests for additional coverage (#1890)
* Refactor main.ts dependencies into singleton pattern

* Split main.ts into testable pieces, some other refactoring for singleton pattern

* Unit tests for main/app/app

* Unit tests for main/app/config

* Unit tests for main/app/initialize

* Unit tests for main/app/intercom

* Unit tests for main/app/utils

* Add some more tests to get to 70% coverage

* Fix for linux

* Fix for alternate data dir paths

* Fix E2E test
2021-12-09 15:11:55 -05:00
Devin Binnie 850eadceb9
[MM-40192] Don't send message until server is finished reloading (#1886)
* [MM-40192] Don't send message until server is finished reloading

* Error check
2021-12-09 12:44:44 -05:00
Devin Binnie 4a98dce51e
[MM-40330] Unit tests for main/windows (#1885)
* [MM-40330] Unit tests for main/windows

* Merge'd
2021-12-06 11:08:39 -05:00
Devin Binnie 72f7cb4f08
[MM-40329] Unit tests for main/views (#1883)
* WIP

* [MM-40329] Unit tests for main/views

* Lint/type fix

* Merge'd
2021-12-06 10:13:26 -05:00
Devin Binnie 73056d2649
Code cleanup, update eslint from webapp, add ts-prune (#1884) 2021-12-03 16:01:49 -05:00
Claudio Costa 875a0f8bfd
Expose native API call to get desktop screen sources (#1881)
* Expose native API call to get screen sources

* Move eslint line to the bottom
2021-11-29 10:18:49 +01:00
Devin Binnie 5056ec7ace
[MM-40277][MM-40279][MM-40301][MM-40307][MM-40310][MM-40313] Unit tests and refactors for main module (#1876)
* Refactor autoLauncher and remove unnecessary file

* [MM-40277] Unit tests for main/badge

* [MM-40279] Unit tests for main/certificateStore

* [MM-40301] Unit tests for main/contextMenu, also remove workaround

* [MM-40307] Unit tests for main/CriticalErrorHandler

* [MM-40310] Unit tests for main/utils

* [MM-40313] Unit tests for main/Validator

* Lint fix

* Added globals

* More things that should probably already be merged

* PR feedback
2021-11-26 11:14:26 -05:00
Devin Binnie fc06dc99a2
[MM-40328] Unit tests for main/server (#1880) 2021-11-26 10:21:38 -05:00
Devin Binnie d1eaed8b32
[MM-40266] Refactor and tests for main/allowProtocolDialog (#1875) 2021-11-26 09:54:13 -05:00
Devin Binnie d0e1936b2c
[MM-40146][MM-40147] Unit tests for authManager and certificateManager (#1874) 2021-11-26 09:35:28 -05:00
Devin Binnie d358369ff9
[MM-40327] Unit tests for main/notifications (#1879) 2021-11-26 09:35:00 -05:00
Devin Binnie b20e139971
[MM-40316] Unit tests for main/menus (#1877)
* Unit tests for main/menus/app

* Also this

* Unit tests for main/menus/tray
2021-11-25 10:41:12 -05:00
Devin Binnie a4a275bd73
[MM-39491] Force Add Server modal to stay until server has been added (#1869)
* [MM-39491] Force Add Server modal to stay until server has been added

* Make the parameter optional

* Actually do the logic, add a test for the logic

* Add remove event listener
2021-11-25 09:47:20 -05:00
Devin Binnie b4903d24c9
Remove unnecessary test case (#1878) 2021-11-24 09:18:53 -05:00
Devin Binnie eab1f32a35
[MM-35441] Remove old cert, changes for building node modules (#1863)
* Testing new code cert

* Try again

* FASTA

* EVEN MOAR FADSTA

* TELL ME WHY

* AINT NOTHIN BUT A HEARTACHE

* Trying something

* Trying something else

* Remove unnecessary changes

* Update package-lock.json

* Remove cert

* Testing

* More testing

* Revert "Testing"

This reverts commit e8a471e2ff545123ac3c5d28adb5934b74fc8c48.

* Revert "More testing"

This reverts commit c4e31358e3ae6b14d38b04a20726b650cc7355d0.
2021-11-22 09:54:53 -05:00
Devin Binnie 3b4437e480
[MM-40025] Stop app from redirecting to tabs when not logged in (#1870) 2021-11-22 09:49:53 -05:00
Devin Binnie 4fa89a5fce
[MM-40144] Restructure tests, add test case numbers, some cleanup (#1864)
* [MM-40144] Restructure tests, add test case numbers, some cleanup

* Fix a test
2021-11-19 10:21:34 -05:00
Devin Binnie 113d87fe04
[MM-39888][MM-39960][MM-39961] Added tests for common/tabs, common/config, added coverage tool (#1857)
* [MM-39888] Unit tests for common/config

* [MM-39960][MM-39961] Added tests for common/tabs, added coverage tool

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-10 09:51:56 -05:00
Devin Binnie 38270fcfe8
[MM-39885] Migrate unit tests to Jest, fleshed out tests for common/util, a bunch of cleanup (#1852)
* [MM-39885] Migrate unit tests to Jest, fleshed out tests for common/util/url

* Typo fix

* Oops

* I found more tests!

* Fixed a bug

* Oops again

* Tests for common/utils/util

* A bunch of cleanup

* Oops
2021-11-08 10:04:47 -05:00
Devin Binnie fbb3c9c705
[MM-39843] Show main window on second instance (#1848) 2021-11-08 09:24:19 -05:00
Devin Binnie 0bd5a54c76
[MM-39839] Changes for writing unit tests, some re-org (#1849)
* Move tests to individual folders

* Moved e2e tests to e2e folder, fixed lint issues

* Lint fix
2021-11-04 11:29:32 -04:00
Devin Binnie ba974dbf75
[MM-39428] Check for EBUSY, add retry logic and logging for writing to config (#1845) 2021-11-03 09:26:56 -04:00
Devin Binnie ff8a04245e
[MM-39737] E2E test checking for focused input in Add Server Modal (#1846) 2021-11-03 09:10:26 -04:00
Devin Binnie 3e36773e3a
[MM-39665] MM-T1285 Edit Server Modal (#1841)
* [MM-39665] MM-T1285 Edit Server Modal

* Lint fix
2021-10-29 12:21:47 -04:00
Devin Binnie bb3269f2f6
[MM-39680] E2E Test for Deep Linking (#1843)
* [MM-39680] E2E Test for Deep Linking

* Only for Win32
2021-10-29 11:28:52 -04:00
Devin Binnie c53e897bfd
[MM-38875] Migrate E2E testing to Playwright, re-enable tests (#1800)
* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* [MM-38875] Migrate E2E testing to Playwright, re-enable tests

* Add functionality to map view names to Playwright windows

* Added search box test

* Added robot.js for automating key presses

* Add test using key strokes to navigate menu

* Reload test and added webcontentsid to test helper

* Check Ctrl+Shift+R as well

* oops

* Reorganize

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-28 13:17:10 -04:00