Commit Graph

33 Commits

Author SHA1 Message Date
Bruno Bernardino b1c6ea39ad
Add snap and flatpak options to electron publishing and release
Also adds `deb` and tweaks the v3 compatibility test a bit more since it has failed a couple of times in the last week.

Fixes #201
2022-07-04 12:22:12 +01:00
Bruno Bernardino 0e51950f48
Improve v3 compatibility e2e test reliability
I've ran the test 50 times in a row without errors locally in CLI, now. Let's see how it handles itself in CI.
2022-06-23 08:27:45 +01:00
Martin Kleinschrodt 44d5cc07d0 Merge branch 'v4' into feature/scim-v1
* v4:
  Remove trailing slash from config URLs
  Increase timeout in e2e v3 compatibility tests to prevent intermittent fails
  Update vault revision when changing name or other meta data to make sure clients pull the updated version Fixes #427
  Rename components
  Fix performance problem caused by trying to calculate strength of very long passwords
  Properly integrate security check feature into provisioning system, allowing to hide/disable it.
  Add missing properties in AccountProvisioning and OrgProvisioning classes (forgot to commit earlier)
  Allow disabling security checks
  Update logo and icon

# Conflicts:
#	packages/core/src/util.ts
2022-05-16 16:37:43 +02:00
Martin Kleinschrodt f153b16e0e Fix tests 2022-05-16 11:14:08 +02:00
Martin Kleinschrodt ca6a77161b Increase timeout in e2e v3 compatibility tests to prevent intermittent fails 2022-05-10 17:00:21 +02:00
Martin Kleinschrodt 5fcb406e1a Increase delay even more 2022-02-19 15:23:14 +01:00
Martin Kleinschrodt 8e2b9696d5 Increase some delays 2022-02-19 15:07:41 +01:00
Martin Kleinschrodt 1523ef234b Looks like delays are still needed in some places - add them where appropriate 2022-02-19 15:01:01 +01:00
Martin Kleinschrodt ba4bf0c8fa Covert the rest of the tests; pass in email address as param to login, signup and unlock commands 2022-02-19 12:23:56 +01:00
Martin Kleinschrodt 675dfca3b7 Use helper command to more reliably type stuff into pl-input elements; Use randomized email for signup tests to allow for better replayability 2022-02-19 09:24:52 +01:00
Martin Kleinschrodt afc43cc643 Use more robust method of traversing shadow dom that allows us to make use of cypress' retry functionality and doesn't require timeouts everywhere 2022-02-18 17:49:11 +01:00
Martin Kleinschrodt c3eaec4043 Add utility command for fetching verification codes from maildev server; clear all emails before each test 2022-02-18 16:18:20 +01:00
Martin Kleinschrodt c4e67381ee Use maildev for catching and parsing verification emails in e2e tests 2022-02-18 12:28:36 +01:00
Bruno Bernardino 83e6c74936
Fix server crashing with malformed requests
It also adds tests to ensure there are no regressions.

Closes #381
2022-02-17 14:33:07 +00:00
Bruno Bernardino 8eca9ff07c
v3 client compatibility end-to-end tests
This adds the final tests to login/lock/unlock, create item, and find item, with the v4 server and v3 client.
2022-02-14 19:58:55 +00:00
Bruno Bernardino e6d097030e
Fix v3 signup test. 2022-02-12 08:17:25 +00:00
Martin Kleinschrodt 41c7c127b7 Implement v3 compatibility layer as mixin on Controller class 2022-02-10 12:51:16 +01:00
Martin Kleinschrodt 12c71d3535 First pass at ensuring v3 compatibility 2022-02-10 10:32:41 +01:00
Bruno Bernardino 5aa2d19865
Add v3 compatibility end-to-end test
This is still a WIP. It adds the basic skeleton for the tests and is going through the signup, but currently unable to finish.
2022-02-09 17:15:08 +00:00
Bruno Bernardino e2cd6135d5
Increase the time before new item form shows up 2022-02-08 16:20:01 +00:00
Bruno Bernardino f198b9be63
Try increasing times for consistent passing in CI 2022-02-08 16:12:54 +00:00
Bruno Bernardino 67e59c9176
Increase one wait time.
The created item is frequently leaving the first couple of letters, try to give the app more time to animate.
2022-02-08 15:59:13 +00:00
Bruno Bernardino a926795250
Add a few more `cy.wait()`s, to make sure the elements accept typing and clicking 2022-02-08 15:52:57 +00:00
Bruno Bernardino fe8e014ba8
Find Item e2e test
This adds a "find item" e2e test that confirms matching items show, and non-matching items don't.

I also implemented the `waitForAnimations` config, but I found the results inconsistent via CLI, so I left those in, after much experimentation.

There are a couple of improvements on reducing the number of `.find()` calls in the Cypress tests, when the elements aren't rendered in the Shadow DOM.
2022-02-08 14:55:29 +00:00
Bruno Bernardino cdc21f8d95
Create Item end-to-end test
This adds a test for creating an item.

It also caught another problem with a timeout that wasn't safety-checked, and I refactored a couple of items.
2022-02-02 15:46:41 +00:00
Bruno Bernardino 1819f36c66
End-to-end login test
This finishes the e2e login test, and adds lock/unlock testing.

It also fixes an error the locking test caught (for accounts with no items), and caching of node_modules when testing, for faster results.
2022-02-01 16:22:16 +00:00
Bruno Bernardino 64532a5311
Tweak wait/timeout for signup test. 2022-01-31 18:00:55 +00:00
Martin Kleinschrodt 2d1547038f Add warning in case someone uses the wrong email address when logging in to accept an invite 2022-01-31 13:08:06 +01:00
Martin Kleinschrodt 20985dc61d Update tests 2022-01-30 17:52:54 +01:00
Bruno Bernardino 0413a7cbe3
Force typing in a couple of places, and don't force in others.
It seems that when running too fast (headless, CI), the elements can sometimes not be ready or have an animation going on top of it.
2022-01-26 18:15:13 +00:00
Bruno Bernardino 905c703368
Signup test is working all the time, now.
I added a few more commands, but the login is still throwing somewhere, and I haven't investigated that fully just yet.
2022-01-26 18:01:40 +00:00
Bruno Bernardino 8ecb82c395
Finished setting up the signup and login tests.
There's still a problem of not being able to reproduce from a clean slate because the `packages/server/data` folder is always being used, and the browser appears to keep some state, somehow.
2022-01-24 18:13:10 +00:00
Bruno Bernardino f905ab77c6
First e2e test (via cypress)
This adds the first e2e test via [cypress](https://cypress.io). It's still incomplete, but it was a bit of a pain to figure out the shadow dom stuff.

The next step is to force a specific verification code when running via tests so the test can progress.
2022-01-21 18:51:27 +00:00