Commit graph

137 commits

Author SHA1 Message Date
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 b1d586e9da Remove nodeIntegration warning of webview in BrowserWindow
nodeintegration attribute is ignored in React because it's unknown.
So fortunately the integration is not working.
New 'will-attach-webview' allows us to set nodeIntegration = false.
2017-03-18 20:58:32 +09:00
Yuya Ochiai f7bcfa04f2 Add test for tray icon theme 2017-03-15 22:45:11 +09:00
Yuya Ochiai 60429a9622 Disable dev mode in npm start 2017-03-06 23:43:28 +09:00
Yuya Ochiai d8abb4b9c7 Fix tests 2017-03-06 21:31:17 +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
Yuya Ochiai e89ecf3120 Fix test assertion 2017-02-17 20:40:54 +09:00
Yuya Ochiai efe95bb72b Add test on cliecking server list item 2017-02-17 20:40:54 +09:00
Yuya Ochiai e4d1ab2938 Merge pull request #428 from yuya-oc/app-options
Improve messages and options in "App Options" section
2017-02-17 19:52:14 +09:00
Yuya Ochiai 9d2efeabdd Show NewServerModal when no servers exist in SettingsPage 2017-02-13 20:23:02 +09:00
Yuya Ochiai 6488270036 Update tests for latest options 2017-02-10 21:14:14 +09:00
Yuya Ochiai f5320197ab Remove options to be deprecated 2017-02-10 21:14:13 +09:00
Yuya Ochiai c76797e68e Merge pull request #415 from jnugh/ux-manage-servers
Ux manage servers
2017-02-10 20:19:27 +09:00
Jonas Schwabe 63fe562349 Animate NewTeamModal close 2017-02-03 22:01:37 +01:00
Yuya Ochiai ca5632342e Re-enable window.eval()
Close #333
2017-02-03 23:32:23 +09:00
Jonas Schwabe c36f7f795d Only validate new team modal input when save has been clicked 2017-01-30 20:45:47 +01:00
Jonas Schwabe 8f3f59392d Add specs for new team modal 2017-01-30 20:26:11 +01:00
Yuya Ochiai 06569df3e3 Add tests for RemoveServerModal 2017-01-25 00:06:42 +09:00
Yuya Ochiai ed8205e7e8 Fix test 2016-12-27 23:29:52 +09:00
Yuya Ochiai 0e6ba99e36 Add test for #378 and #386 2016-12-27 22:10:53 +09:00
Yuya Ochiai 3bf41ca3e5 Add --data-dir to switch userData directory 2016-12-27 21:19:01 +09:00
Yuya Ochiai 1752cec20d Use latest react-bootstrap 2016-11-23 21:11:04 +09:00
Jonas Schwabe b715637136 Update settings specs to check for the webpreferences attribute 2016-11-22 21:19:44 +01:00
Yuya Ochiai f3ee426ef5 Use electron instead of electron-prebuilt
Now electron-prebuilt is deprecated.
https://github.com/electron-userland/electron-prebuilt/tree/v1.4.2#installation
2016-11-08 00:00:56 +09:00
Yuya Ochiai 16788b5a6f Fix eslint errors 2016-10-28 00:49:52 +09:00
Yuya Ochiai 16a18e64e6 Rewrite .eslintrc.json with extends property 2016-10-28 00:47:49 +09:00
Yuya Ochiai 1a7ff7c88f Update tests to stablize on local machines
makeSingleInstance test:
  On Windows, the test often fails, so skipped.

Window title test:
  Extend pause duration to wait updating title.
2016-09-29 19:42:55 +09:00
Yuya Ochiai 7cc495130f Fix typo 2016-09-14 00:35:19 +09:00
Yuya Ochiai 8870863955 Fix the test can't click input elements
Needed to scroll to the element when it's not visible in the view.
2016-09-13 23:53:07 +09:00
Yuya Ochiai c6ebf4ff36 Prettify codes 2016-09-13 01:02:11 +09:00
Asaad Mahmood 71ab644aeb UI Improvements for settings page 2016-09-12 20:53:45 +05:00
Yuya Ochiai 5d9c74e8bd Merge pull request #247 from jgis/master
Force single app instance

Close #236
2016-08-22 00:17:29 +09:00
Julian Gisser 8f633cb734 merge with make-single-app-instance branch 2016-08-21 09:49:14 +02:00
Yuya Ochiai f18710991f Merge pull request #255 from Razzeee/bump-prettify
Bump prettify dependencies and apply prettification
2016-08-21 15:33:14 +09:00
Yuya Ochiai 6fe23cb136 Add tests for window title 2016-08-20 22:45:30 +02:00
Kolja Lampe 5a5095de54 Prettified project after prettify bump 2016-08-20 22:38:34 +02:00
Yuya Ochiai eac17decf6 Merge branch 'security-improvements'
For #220
2016-08-09 01:11:06 +09:00
Yuya Ochiai ce6cf485f6 Implementation and further tests for #220 2016-08-09 00:04:36 +09:00
Kolja Lampe 51d828aa1a Make unread badge configurable 2016-07-28 18:00:15 +02:00
Kolja Lampe 54849d6859 Added two security improvements as mentioned at http://electron.atom.io/docs/all/#checklist 2016-07-24 22:44:38 +02:00
Jonas Schwabe 028d0ac7f8 implements #122, urgent hint on linux 2016-07-23 14:03:53 +02:00
Yuya Ochiai ad7f63127f Add feature to hide window into system tray in Linux 2016-07-06 22:31:35 +09:00
Martin Gondermann 2b4ee5f0bc Readded the Option to hide the window on close for OSX 2016-07-03 16:12:04 +02:00
Martin Gondermann 2919b1af5f Removed option to minimize to tray, this is now the default behaviour 2016-07-03 14:58:48 +02:00
Martin Gondermann 865b08105a OSX: Added Option to hide Window from dock on close 2016-06-30 22:17:31 +02:00
Martin Gondermann 3daaabca65 Add test for toggle setting 2016-06-28 15:09:05 +02:00
Martin Gondermann d6de73458c MinimizeToTray-Setting is only shown on Windows 2016-06-27 09:36:22 +02:00
Yuya Ochiai f5e28e2739 Execute testing js code directly with webdriverio API 2016-06-25 22:46:14 +09:00
Yuya Ochiai 9e6d6fcfdb Wait until a new window is opened 2016-06-25 22:09:37 +09:00
Yuya Ochiai 98b6ce8760 Extend pause 2016-06-25 21:42:03 +09:00
Yuya Ochiai b6e975aa21 Add assertion to confirm Node.js is disabled in rederer by executing require() 2016-06-25 21:21:10 +09:00
Yuya Ochiai 7fc963125a Add test to confirm Node.js is disabled in a new window 2016-06-25 18:46:23 +09:00
Yuya Ochiai b22c1eb2aa Add test to confirm Node.js API is disabled in webview 2016-06-25 18:04:33 +09:00
Yuya Ochiai 08aca0f235 Improve the way to skip tests on specific condition 2016-06-25 17:05:56 +09:00
Yuya Ochiai 580bebdc66 Combine save/load tests 2016-06-23 21:02:08 +09:00
Yuya Ochiai 4fca00ec9d Add tests for settings 2016-06-23 00:03:04 +09:00
Yuya Ochiai f432846a28 Modify test-code style for 'Hide Manu Bar' 2016-06-22 00:35:04 +09:00
Yuya Ochiai 2347d5e299 Add tests for disablewebsecurity (Allow mixed contents) 2016-06-22 00:33:14 +09:00
Yuya Ochiai e9f8140594 Rewrite tests with chai-as-promised 2016-06-06 21:18:25 +09:00
Yuya Ochiai 05bcda5eab Test actual behavior for Hide Menu Bar 2016-05-21 20:57:59 +09:00
Yuya Ochiai b52dfa5348 Use Spectron to execute test 2016-05-21 18:08:53 +09:00
Yuya Ochiai d62470a0af Prettify JSON files 2016-05-16 23:01:26 +09:00
Yuya Ochiai a199f09216 Add tests for hideMenuBar 2016-05-03 00:42:13 +09:00
Yuya Ochiai 47486d8b8e Rearrange test directory 2016-05-02 22:45:56 +09:00
Yuya Ochiai ab18e33f7f Merge branch 'master' into release/v1.1.0 2016-03-22 23:24:04 +09:00
Yuya Ochiai babda10dc9 Merge pull request #79 from mattermost/rename-app
Rename electron-mattermost to Mattermost at implementation
Drop `v` from version name when releasing
2016-03-20 23:16:45 +09:00
Yuya Ochiai 361b71a04a Add waiting when switching tabs 2016-03-14 21:38:50 +09:00
Yuya Ochiai 63aaab804b Try to stabilize tests
pause() was missing before getUrl() in some tests.
2016-03-14 21:28:43 +09:00
it33 a32066d39a Change http to https 2016-03-13 08:54:03 -07:00
Yuya Ochiai e82d6be0b5 Rename electron-mattermost to Mattermost at implementation
npm package name (package.json: name) is "mattermost-desktop"
display name (package.json: productName) is "Mattermost"
2016-03-13 22:55:08 +09:00
Yuya Ochiai 1ccb7cebce Add test for failed to load URL 2016-03-05 20:57:16 +09:00
Yuya Ochiai 0704cf544a Use webpack to build 2016-02-09 20:31:37 +09:00
Yuya Ochiai 1cc68197d2 Hide tabs when the number of teams is 1 2016-01-13 22:34:51 +09:00
Yuya Ochiai e53a43d17a Use primitive and promise-style test cases
On OS X, tests for multiple elements often failed (#5). So I replaced them with primitive way.
2016-01-10 00:54:32 +09:00
Yuya Ochiai 3d8d39562f Add simple tests for settings.html 2015-12-27 16:12:20 +09:00
Yuya Ochiai cdfddda8e6 Fix afterEach in browser test 2015-12-26 01:03:43 +09:00
Yuya Ochiai b9b4b581de Fix browser test for OS X 2015-12-25 23:17:10 +09:00
Yuya Ochiai c5aba41488 Extend timeout in browser tests 2015-12-24 00:45:23 +09:00
Yuya Ochiai c0e0698b99 Wait for the preparation of chromedriver 2015-12-23 22:00:17 +09:00
Yuya Ochiai 7fb2dc9cb6 Add tests for tabs 2015-12-23 20:53:54 +09:00
Yuya Ochiai 62b6e4c51b Fix for failed tests 2015-12-23 19:25:14 +09:00
Yuya Ochiai 283e311095 Settings UI for multiple teams with React 2015-12-19 23:51:19 +09:00
Yuya Ochiai dc9794b1f5 Read/Write/Upgrade config.json with settings module 2015-12-13 22:58:22 +09:00
Yuya Ochiai 2a84f46b90 Add tests for app launching 2015-12-12 21:20:18 +09:00