Commit graph

88 commits

Author SHA1 Message Date
William Gathoye 929b62874a Fix tests 2020-05-15 01:42:27 +02:00
Guillermo Vayá c2102bb257
[MM-22102] upgrade to electron 7 (#1268)
* fix errors

* upgrade to electron 7

* getsavepath is deprecated

* fix typo

* disable messaging from 'null'

* replace getname to its property

* deprecated zoomlevel

* deprecated setbadgecount

* isdarkmode deprecated

* it's a property, not a function

* fix error message

* fix test

* fix test on linux
2020-05-09 00:29:02 +02:00
Devin Binnie 932ddafdb0
[MM-10586] Desktop App Window/Tabs Update (#1056)
* [MM-19054] Added new server tab look and feel, still missing proper hover states and session expired icon

* [MM-19055] Added window controls and removed border for macOS

* [MM-19055] Add dark mode for macOS

* [MM-19054] Added session expired icon

* Test windows titlebar

* Fixed the menu issue and added non-macOS dark mode

* Blank commit

* Fixed a lint issue

* Fixed more lint issues

* Fixed more issues

* New tray icons

* [MM-19603] Drag and drop tabs

* Fixed some assets and fixed build output to include missing assets

* Fixed a couple small issues

* Only show tabs for only 1 server on Mac

* Fixed some more tests

* Fixed another test

* Revert "Fixed another test"

This reverts commit 36040294a71a68663d06996d71eecc5ed23d7014.

* Fixed another test

* Trial and error!

* A bunch of additional fixes

* Fixed a lint issue

* Fixed restore focus on add server tab causing bad UX

* Trial and error on flaky test again

* Fixed some bugs based on PR feedback.

* blank commit to push tests

* Revert "Test windows titlebar"

This reverts commit 9cd46b71b1427b75942434ac49185870d2437b85.

* Remove the rest of the old new titlebar and fixes

* Added three-dot link

* New menu

* Rest of new windows menu and other fixes

* Fixed lint errors

* Added windows 10 style title bar buttons for non mac OS

* Lint fixes and enabled the tab bar regardless of number of servers

* Missed one

* Fixed unicode characters

* Commenting out test that should no longer be applicable

* Removed Windows 10 style titlebar icons and used material design instead

* Fixed a lint issue

* Some small UX fixes

* blank commit

* Fixed an issue where dropping the first tab moves it too far over before snapping into place

* Additional style fixes

* Another small issue fix

* Back to Windows 10 style

* Lint fixes

* Accessible three dot menu

* Lint fixes

* Shrinking tabs when window is too small

* Gradient between tabs and title bar buttons when window is too small

* Add drag to gradient

* Replaced icons, drag and drop cursor sticking fix, slight tab change

* Lint and some mac fixes

* Light theme fix to three dot menu

* Hack for tab sticking to cursor on macOS

* Fixes for the find utility

* Fix for Catalina dark mode

* Revert "Fix for Catalina dark mode"

This reverts commit 45da05dd0f17f46efd1c53fafb92e9c1fd9dd8d9.

* Fixed a couple issues Dean found

* More fixes

* Three dot hover effect to circle

* PR feedback

* Test fixes

* Test and config fixes

* Disable dragging when there are GPO servers

* [MM-20757] Fixed dark mode on debug when running macOS Catalina

* Allow future config versions to use v2 config if launching this version of the app

* Oops

* New titlebar icons, blur for titlebar on inactive

* Lint fix

* Set unfocused opacity to 0.4

* Final FINAL icons

* Fixed closing menu not returning focus to the app

* Lint fix

* Update src/browser/components/TabBar.jsx

Co-Authored-By: Guillermo Vayá <guivaya@gmail.com>

* Update src/main/Validator.js

Co-Authored-By: Guillermo Vayá <guivaya@gmail.com>

* Lint fixes

* Moved react-smooth-dnd fork to MM org and fixed another merge issue

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Guillermo Vayá <guivaya@gmail.com>
2020-01-03 12:00:43 -05:00
Dean Whillier e12d47ea62
Mm 16694 master validate urls (#1000)
* validate urls before deeplink or link click

* tests for isValidURL utility function

* review change - invert condition

* add validation for loaded files

bounds-info.json, app-state.json, config.json

* further validation and tweaks

certificate.json, permission.json

* add 2 more files for validation

* parse and validate deeplinks

- includes fix for windows deeplink when app is open

* disable auto-updator when in dev

* Squirrel is not used anymore

* fix validating allowedProtocols

* discard any args following a deeplink url

* tweaks

* update test

* support scheme’s with and without slashes

* stop after finding the first occurance of a deep link

* test updates

* updates to run tests successfully

* port updates to validation from 4.2

* url validation updates

changed validation package to better support internal domains and punycode domains
2019-09-09 12:38:31 -04:00
Dean Whillier 4137d0ea23 [MM-14740] Consolidate configuration to support integration of MSI/GPO (#959)
* config logic consolidation

* filter out duplicate servers

* build default teams and GPO teams are not editable

* tweaks

* tweak config architecture to support tests

- config needs to load in each process (main and renderer) and then synchronize with each other
- finished saving ui functionality

* add esdoc comments to new config module

* remove old config-related files

* revert eslint comment

* don’t filter teams, duplicates are allowed

* some code review tweaks

* Remove unecessary deepCopy

* tweak for tests

* Skip test for now

Can’t seem to get this test to work, even though what is being tested works fine in the actual app.

* fix for failing test

click of ‘light’ option wasn’t triggering an update as it is selected by default, so flipped the order to first select ‘dark’ and then ‘light’
2019-04-11 13:58:30 +02:00
Yuya Ochiai de03d513d0 Tweak timeout to fix failing test 2019-01-07 23:17:43 +09:00
Yuya Ochiai 70b3aa0531 Fix or skip broken tests
When there is navigation with #btnClose, all APIs would fail.
So such tests are marked as "skipped".
2018-11-13 22:51:00 +09:00
Yuya Ochiai 37b71476d2 Fix ESLint header/header error 2018-05-31 00:30:24 +09:00
Yuya Ochiai 1c9c531826 Tweak pausing in NewServerModal test 2018-05-26 00:23:28 +09:00
Yuya Ochiai 6b7dd6616a Resize test window to click target element 2018-05-25 21:10:16 +09:00
Yuya Ochiai 0a673bc0cd Resize the window to click the center of body in test 2018-05-24 01:40:53 +09:00
Yuya Ochiai 11b5bc16c2 Manually calculate scroll offset in test 2018-05-24 01:40:53 +09:00
Yuya Ochiai fd801b0f25 Tweak waiting for animation in test 2018-05-24 01:38:28 +09:00
Yuya Ochiai 15bd3acc0c Scroll to the target element before clicking in test 2018-05-18 00:38:43 +09:00
Yuya Ochiai 8edd57dd0c Fix test assertion due to changed default option 2018-05-15 21:37:09 +09:00
Yuya Ochiai e8e60beff2 Tweak timeout 2018-04-12 23:01:46 +09:00
Yuya Ochiai 0b150ee60a Tweak timeout 2018-04-12 22:40:38 +09:00
Yuya Ochiai 4586704238 Fix test for gpu option 2018-04-03 21:53:37 +09:00
Yuya Ochiai 570b256da9 Stop using scroll in test 2018-03-21 00:02:13 +09:00
Yuya Ochiai b737e63f68 Add "Enable GPU hardware acceleration" option 2018-03-21 00:02:13 +09:00
Yuya Ochiai aa5e6563fe Tweak pause of modal tests 2018-03-16 20:17:33 +09:00
Yuya Ochiai 0be402be81 Rewrite tests with async/await 2018-03-14 21:55:20 +09:00
Yuya Ochiai 12f240d196 Add showTrayIcon test for Mac and Linux 2018-02-27 20:00:49 +09:00
Yuya Ochiai 75b34927b9 Tweak pause duration of failing test 2018-02-23 20:29:44 +09:00
Yuya Ochiai 197b172a59 Fix eslint errors 2018-02-23 00:37:24 +09:00
Yuya Ochiai a5a5393149
Merge pull request #711 from yuya-oc/upgrade-electron
Upgrade Electron
2018-02-23 00:15:11 +09:00
Jesse Hallam 620c5484e3
invoke yarn fix:js to adopt the updated eslint rules. No other changes are included. 2018-02-21 14:21:16 -05:00
Yuya Ochiai 6dd4754b19 Tweak pause duration of failing test 2018-02-14 22:51:52 +09:00
Yuya Ochiai 54c4cffa9a Use valid URL in test 2018-02-08 21:46:12 +09:00
Yuya Ochiai d5773b138b Wait unselected team disappears in test 2018-02-07 21:33:51 +09:00
Yuya Ochiai 92f56ce2d3 Fix tests which use AutoSaveIndicator 2018-02-07 21:33:50 +09:00
Yuya Ochiai 88e6dd9de0 Fix tests with proper promise chain 2018-02-07 21:33:50 +09:00
Yuya Ochiai 616465748b Use a Mattermost animation icon when loading a page in the app 2017-11-07 20:48:15 +09:00
Yuya Ochiai 5a8a1e3b3c Extend waitForVisiable timeout for AutoSaveIndicator 2017-10-26 23:54:15 +09:00
Yuya Ochiai 98077784ec Extend test timeout to stabilize CI 2017-09-23 15:13:39 +09:00
Yuya Ochiai 1f86fbc18a Fix close button not working when the number of teams is not zero 2017-07-01 23:46:45 +09:00
Yuya Ochiai 2307b3ca6a Fix alignment for 'Add new server' button 2017-05-31 20:33:12 +09:00
Yuya Ochiai c333f7b87b Enable spellchecker as default setting
The language should be determined by user's locale.
If it's not available in spellchecker, en-US is used.
2017-05-03 20:53:33 +09:00
Yuya Ochiai 85bd58dd2e Skip window title tests because they are very unstable 2017-04-28 00:47:39 +09:00
Yuya Ochiai 9f5ee581ab Add small pausing before testing window title to stabilize tests 2017-04-28 00:16:31 +09:00
Yuya Ochiai 256e317402 Add context menu to select spelling language 2017-04-27 20:26:37 +09:00
Yuya Ochiai 84d0ec432a Implement simple spellchecker 2017-04-26 00:12:23 +09:00
Yuya Ochiai 7e12e64c31 Fix tests due to webview indices 2017-04-18 23:52:03 +09:00
Yuya Ochiai 96b5122988 Stop using chai-as-promised due to its license
For #488
2017-03-29 01:03:52 +09:00
Yuya Ochiai f08db8c72b Remove "Display secure content only" option
allowDisplayingInsecureContent is removed in Electron 1.6.
And it's no longer necessary to show http contents in https server.
2017-03-18 21:33:51 +09:00
Yuya Ochiai f7bcfa04f2 Add test for tray icon theme 2017-03-15 22:45:11 +09:00
Yuya Ochiai 8376ffe4cc Add pause() to stabilize tests 2017-03-03 21:08:14 +09:00
Jason Blais caede34a8c Update settings_test.js 2017-02-22 10:25:14 -05:00
Yuya Ochiai 8acd7b99e7 Show "Saving..." for 0.5 seconds and show error if it occurred 2017-02-17 20:55:43 +09:00
Yuya Ochiai f2e26ec276 Fix tests for auto-saving 2017-02-17 20:50:50 +09:00