Commit Graph

3198 Commits

Author SHA1 Message Date
Bruno Bernardino 64e89077ee
Try to build linux from macos 2022-02-24 16:41:03 +00:00
Bruno Bernardino 9880e4c2c9
Fix Linux Electron icon
I can't build this locally over some strange permissions issue. I'm pushing to try if it works on CI.

I've tried many suggestions mentioned in the following PRs, but nothing worked. This one seems to at least try to do something about the icns file, though it's failing locally, like I said:

- https://github.com/electron-userland/electron-builder/issues/748
- https://github.com/electron-userland/electron-builder/issues/2269
- https://github.com/electron-userland/electron-builder/issues/4617
- https://github.com/electron-userland/electron-builder/pull/5385
- https://github.com/electron-userland/electron-builder/issues/2577#issuecomment-659879082

Related to #123
2022-02-24 16:14:05 +00:00
Bruno Bernardino 4a1ecd5b47
Merge pull request #405 from padloc/fix/chrome-extension-auto-lock
Enable Auto-lock in web extension
2022-02-24 07:10:21 +00:00
Bruno Bernardino 2df8c83738
Add private to methods 2022-02-23 17:03:40 +00:00
Bruno Bernardino 17890719a9
Enable Auto-lock in web extension
This allows the web extension to auto-lock (tested in Chrome and Firefox), by running an alarm in the background, since the `setTimeout` is ignored past 10 seconds.

I noticed that if the popup is open, it does not lock until it’s closed (even after firing the alarm). I couldn’t find a way to change the route for the app from the background, and I wasn’t sure if it would worth it adding a new listener for this, as it’s not common for the extension to be open for a long period of time anyway.

Closes #300
2022-02-23 16:48:20 +00:00
Martin Kleinschrodt 49cf294584
Merge pull request #404 from padloc/feature/e2e-maildev
Use maildev for catching and parsing verification emails in e2e tests
2022-02-20 08:00:58 +01:00
Martin Kleinschrodt b4b44f9d08 Use custom fork of maildev without the vulnerable dependencies and with proper html sanitiation 2022-02-19 17:40:50 +01: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 70903968e3 Add missing smtp host and port configuration 2022-02-18 12:46:31 +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 cb26c6fce2
Merge pull request #403 from padloc/fix/server-crashing-malformed-requests
Fix server crashing with malformed requests
2022-02-17 15:08:55 +00: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 858fc3a324
Merge pull request #401 from padloc/feature/v3-compatibility-e2e-login-test
v3 client compatibility end-to-end tests
2022-02-15 11:21:26 +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 883adabaa5
Merge pull request #399 from padloc/feature/v3-compatibility-e2e-test
Add v3 compatibility end-to-end test
2022-02-12 20:19:13 +00:00
Bruno Bernardino e6d097030e
Fix v3 signup test. 2022-02-12 08:17:25 +00:00
Martin Kleinschrodt 74b5130cc4 Mark v3 compatibility layer ad deprecated from the start, to remind us that it should be removed eventually 2022-02-10 13:13:14 +01:00
Martin Kleinschrodt 00e6a2cfc1 Remove debugger; statement 2022-02-10 13:00:49 +01: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 aae84f4e22
Merge pull request #398 from padloc/feature/find-item-e2e-test
Find Item end-to-end test
2022-02-08 16:29:25 +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 12f5e04f7f
Merge pull request #396 from padloc/feature/create-item-e2e-test
Create Item end-to-end test
2022-02-02 17:44:25 +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 4dd4c65266
Merge pull request #395 from padloc/feature/login-e2e-test
End-to-end login test
2022-02-01 17:37:19 +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 5ca373993a
Merge pull request #394 from padloc/feature/refine-signup-flow
Refine Signup Flow
2022-02-01 12:44:59 +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 f4500176f6 Add back preauthentication via invite link for unregistered invitees 2022-01-31 12:15:29 +01:00
Martin Kleinschrodt 5ca16be2fa Insert url into TOS link 2022-01-31 12:08:05 +01:00
Martin Kleinschrodt b37fb74e33 Load terms of service url from manifest file 2022-01-31 12:02:35 +01:00
Martin Kleinschrodt 045fdb90e0 Usa a more muted white for the dark theme 2022-01-31 08:07:33 +01:00
Martin Kleinschrodt 20985dc61d Update tests 2022-01-30 17:52:54 +01:00
Martin Kleinschrodt 2bbe7c0770 Add a little pizzazz 🎉 2022-01-30 16:35:58 +01:00
Martin Kleinschrodt df86788672 Display invite preview in signup/login/unlock view; add final "success" step to singup flow 2022-01-30 15:57:00 +01:00
Martin Kleinschrodt 21f6e480a3 Add additional signup step for choosing name and agreeing to TOS 2022-01-29 17:26:39 +01:00
Bruno Bernardino 7a39522c3c
Merge pull request #393 from padloc/feature/first-e2e-test
First e2e test (via cypress)
2022-01-27 10:37:26 +00:00
Bruno Bernardino 81ba6ebbc8
Remove unnecessary things 2022-01-27 10:33:03 +00:00