26 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 647ed20de1 Clean statics & bundle more (#6745)
* * Remove unused old version of MFB
* Bundle food, profile editor
* Clean up the static folders

* Fix tests
2021-01-17 12:20:48 +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
Sulka HaroandGitHub 801900597a Optimize Nightscout database usage (#5947)
* On periodic polls, only load delta for CGM data, treatments and device statuses
* Serve basic CGM data API queries from in-memory cache. Increases the Nightscout memory footprint but should significantly reduce the Mongo load
* Serve device status, CGM and treatment records from memory cache
* Support count parameter in /profile
2020-09-09 20:11:57 +03:00
PieterGit 2cadcb0f76 increase profileeditor tests to 40 sec 2017-09-14 20:03:42 +02:00
PieterGit 2676cee355 Admintools and profileeditor test fails with 20 sec timeout. Increasing to 25 sec.
```
not ok 1 admintools "before all" hook
  Error: timeout of 20000ms exceeded. Ensure the done() callback is being called in this test.
      at tests/admintools.test.js:177:7
      at Object.done (node_modules/benv/index.js:32:21)
      at process.nextTick (node_modules/jsdom/lib/old-api.js:347:18)
      at _combinedTickCallback (internal/process/next_tick.js:131:7)
      at process._tickCallback (internal/process/next_tick.js:180:9)

not ok 203 Profile editor "before each" hook for "should produce some html"
  Error: timeout of 20000ms exceeded. Ensure the done() callback is being called in this test.
      at tests/fixtures/headless.js:160:7
      at Object.module.exports.setup (node_modules/benv/index.js:24:56)
      at Function.init [as setup] (tests/fixtures/headless.js:16:10)
      at Context.<anonymous> (tests/profileeditor.test.js:94:14)
```
2017-09-14 19:26:50 +02:00
PieterGit ddce2b91cd decrease timeouts to detect regressions faster in future 2017-09-14 19:16:32 +02:00
Sulka Haro 32273fdf20 Fix tests to uses the view path :D 2017-09-11 20:02:30 +03:00
Sulka Haro a1ac364df1 More test fixes 2017-08-30 00:05:45 +03:00
Sulka Haro 89cee93805 Fix battery icon, some tests 2017-08-21 18:02:27 +03:00
Jason Calabrese 3800212f9d bump timeouts more to prevent intermitent failures with benv tests 2016-10-28 17:52:11 -07:00
Jason Calabrese d59f5a8c71 get tests to pass with upgraded dependencies 2016-10-28 17:28:30 -07: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
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
Jason Calabrese e3d1b58fdc fix more tests 2016-06-07 23:14:44 -07:00
MilosKozak 554cd5f7eb profile editor test #2 2016-04-24 19:24:59 +02:00
MilosKozak 60dc546d1a profile editor test 2016-04-24 19:01:57 +02:00
MilosKozak 8d7f17e957 Basic profileeditor test 2015-10-28 11:09:56 +01:00
MilosKozak 2ca0d26ccd some test fixies 2015-10-28 10:11:15 +01:00
MilosKozak 1ee0e4ba5f test fix pass 2 2015-10-17 22:00:54 +02:00
Jason Calabrese 26fd7733b8 fix path for renamed file 2015-08-22 18:08:36 -07:00
Jason Calabrese 647fceee5f fix some issues found by codacy 2015-08-22 17:08:34 -07:00
Jason Calabrese 5a1baebdfd fix profile editor test 2015-08-22 10:39:47 -07:00
Jason Calabrese c7da03dca5 clean up, safer defaults 2015-08-15 11:16:33 -07:00
Jason Calabrese dd319ca594 profile editor updates
use $.ajax for PUT/POST (now easier to mock)
send saveDate as iso
don't sent the per GI fields unless they are enabled
click update button in test
2015-08-15 00:44:53 -07:00
Jason Calabrese 497883024c added most basic test for profileeditor
needed to replace new Option() with basic jQuery append since Option wasn't working in the test
2015-08-13 23:44:29 -07:00