Commit graph

146 commits

Author SHA1 Message Date
Jesse Hallam 79e020ba43 MM-14446: consider subpath when evaluating if url is internal (#946)
* MM-14446: consider subpath when evaluating if url is internal

When clicking on an URL with `target=_blank`, the webview decides if it should launch an external browser or a new window within the Electron application. Update this logic to consider the application's configured subpath so as to treat links outside the subpath but on the same domain as external.

* fix licensing on new file

* fix .eslintrc.json indentation

* tweak header eslint rules for specific files
2019-03-15 20:20:41 +01:00
Yuya Ochiai 6d6d586b3b Add eslint-plugin-eslint-comments 2019-03-12 23:31:45 +09:00
Yuya Ochiai 596f3a8721 Fix failing tests
Setting filename to window.location is no longer working.
2019-02-05 00:08:03 +09:00
Yuya Ochiai de03d513d0 Tweak timeout to fix failing test 2019-01-07 23:17:43 +09:00
Sven Hüster e47061fd7b
Merge branch 'master' into fix-typos 2018-12-10 22:20:18 +01:00
Sven Huester fa961654f3 fixes several typos 2018-12-02 14:55:24 +01: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
Hans-Peter Schadler 8bad9e002e Add tests for spellcheck suggestions 2018-10-09 18:58:32 +02:00
rodrigo f2d6cd383c Add pt-BR spell checker 2018-07-30 13:28:53 -03: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 66f273039f Skip failing tests due to chromedriver issue 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 8432a1ec16 Fix tests 2018-04-10 22:00:31 +09:00
Yuya Ochiai 60e6058869 Use ES6 import/export for modules 2018-04-10 22:00:30 +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 75116e66d8
Merge pull request #731 from yuya-oc/fix-spellchecker
Fix correct spellchecker locale is not selected for non en-US locales
2018-03-16 00:12:31 +09:00
Yuya Ochiai a0ab0255d6 Make sure SpellCheker.getSpellCheckerLocale() returns correct locale 2018-03-14 23:34:34 +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 054b6e2dd8 Fix nested promises 2018-02-14 23:17:08 +09: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 d3e43bb8e6 Rewrite tests with non-nested promises 2018-02-07 21:33:50 +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 5eafe2e7fb Show permissions dialog only for untrusted origins 2017-12-05 00:59:54 +09:00
Yuya Ochiai baf0022892 Add test for splitted config files 2017-11-07 21:42:05 +09:00
Yuya Ochiai 65286a6454 Clean up test userData before each test 2017-11-07 21:42:05 +09:00
Yuya Ochiai ef43ec6e3e Add test for PermissionManager 2017-11-07 21:03:36 +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 ab3bd97a52 Fix an issue where the combination of deepmerge and webpack breaks tests 2017-10-17 00:05:02 +09:00
David Meza 76ced43a68 Changes to have settings tests pass. test/specs/settings_test.js 2017-09-29 11:14:01 -05:00
Yuya Ochiai 98077784ec Extend test timeout to stabilize CI 2017-09-23 15:13:39 +09:00