18 Commits
Author SHA1 Message Date
b188a2a565 #6701 Report storage tests (#6814)
* #6701 Report storage tests

Functional and unit tests

* #6701 Test cleanup

* #6701 js-storage teardown

The first time js-storage is required it evaluates if it's running in the browser or not: https://github.com/julien-maurel/js-storage/blob/master/js.storage.js#L423 and will define the localstorage getters and setters accordingly. This becomes an issue if testing localstorage between UI and non-UI tests. reportstorage.test.js was requiring it before hashauth.test.js causing a conflict.

* #6701 false positive test

The page isn't refreshing

Co-authored-by: Sulka Haro <sulka@sulka.net>
2021-01-31 12:41:00 +02:00
Sulka HaroandGitHub 7fe8e32152 Refactor core auth (#6596)
* Auth resolve now supports async/await
* Read only tokens can be used for authentication and the UI shows privileges for these accounts correctly
* Failed attempt at authenticating an API_SECRET or token delays subsequent auth attempt by 5000 ms
2020-12-11 00:23:25 +02:00
PieterGit 40affa1e91 increase timeout for hasauth.test.js
because it times out with 40000ms on Travis with Node 10. See https://travis-ci.org/PieterGit/cgm-remote-monitor/jobs/401307860

not ok 192 pluginbase does stuff
  AssertionError: expected -1 to be above -1
      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at containsLine (tests/hashauth.test.js:163:41)
      at Window.mockConfirm [as alert] (tests/hashauth.test.js:165:7)
      at Object.u.addBasals (tmp/js/bundle.js:9:2577816)
      at Object.o.scroll (tmp/js/bundle.js:9:2485436)
      at V (tmp/js/bundle.js:9:3092518)
      at Timeout.e [as _onTimeout] (tmp/js/bundle.js:9:3106675)
# tests 192
# pass 191
# fail 1
2018-07-08 00:05:25 +02:00
PieterGitandSulka Haro bd1db6e2b5 Fix tooltips in drawer (#3400)
* fix tooltips in drawer, this was a regression from the bower to webpack upgrade

* fix css path
2018-05-18 09:50:20 +03:00
PieterGit 2f46e05128 hasauth.test.js fails with 25 sec. increasing to 40 sec 2017-09-14 20:11:41 +02:00
PieterGit ec06d5da3b the following tests don't complete in 5 sec. increase timeout to 25 sec. 2017-09-14 19:54:46 +02:00
PieterGit ddce2b91cd decrease timeouts to detect regressions faster in future 2017-09-14 19:16:32 +02:00
Sulka Haro adfe57579e Increasing Travis timeouts ridiculously, we need to do something to this 2017-08-30 00:15:22 +03:00
Sulka Haro a1ac364df1 More test fixes 2017-08-30 00:05:45 +03:00
MilosKozak 61c850be23 Not authorized -> Unauthorized for translations 2017-01-22 14:53:58 +01:00
Jason Calabrese d8b46eecdd refactor init so plugins can be localized 2016-10-15 10:54:20 -07:00
Jason Calabrese 4f86330807 some magic to make tests work with status.json request 2016-09-30 22:10:08 -04:00
Jason Calabrese 212b27d40b create/check shiroTries for each role independently since combining permissions creates side effects; some more auth status in UI to help with troubleshooting 2016-08-07 16:59:54 -07:00
Ben West 0a77b90ecf allow UI tests to re-use/share more code
Tighten up the boilerplate a bit.
2016-08-06 16:56:03 -07:00
MilosKozak c0fb23599e test fix 2015-12-22 21:42:50 +01:00
MilosKozak a46f9697eb codacy 2 2015-08-11 23:34:58 +02:00
MilosKozak 6db621ad8e codacy 2015-08-11 23:27:46 +02:00
MilosKozak 49d6d9fdf2 profile editor, hash authentication 2015-08-11 19:08:48 +02:00