Commit graph

123 commits

Author SHA1 Message Date
Dean Whillier e1f64f0ba0
[MM-19266] User activity monitor updates (#1061)
* user activity monitor updates

- re-work of the mechanism for determining user activity status and triggering updates that are passed to the server via the webapp
- removing system events (login/out screensaveer on/of etc.) to be re-considered for a future release

* add missing descriptions

* review tweaks

* update tests
2019-10-09 09:00:15 -04:00
Dean Whillier 761ef8d0e6
[MM-18152] Desktop notifications (#1040)
* temp

* add in html5 notification tests

* strip out custom permissions handling

* disable middle click

* validate as URI instead of URL

allow’s custom protocol’s to pass through

* add context isolation to new window requests

* add new permissions handling

* prevent setting user to away from quit/shutdown

* dispatch desktop notifications from renderer

* remove test code

* log desktop notification errors

* should deny as a last resort

* only trigger callback once
2019-09-23 14:59:12 -04: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
Guillermo Vayá 304d26cece
[MM-18135] use no sandbox, separate linting, circle 2.1 (#1029)
* [MM-18135] use no sandbox, separate linting, circle 2.1

* [MM-18135] merge lint and test step, use -quiet, clarify changing debugging port
2019-09-06 22:44:52 +02:00
Dean Whillier 2cfc735d6d
[MM 7970] Maintain online status while the Desktop App is in the background ... and other things. (#993)
* monitor os-level user activity

* disable eslint warnings

* add tests for UserActivityMonitor

* couple more tests

* udpate headers of new files
2019-06-25 10:11:03 -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
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 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