Commit Graph

45 Commits

Author SHA1 Message Date
Abdullah Atta
b802b3e165 web: fix diff session not opening in editor 2025-01-31 15:15:48 +05:00
Abdullah Atta
8b357559fa web: fix keyboard-navigation-list tests 2025-01-21 10:30:17 +05:00
01zulfi
4428ccd3a0 web: add lock app button in status bar (#7333)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
2025-01-17 11:35:13 +05:00
Abdullah Atta
b6021dc76b web: fix backup tests for good 2024-08-13 11:09:03 +05:00
Abdullah Atta
b44d2e5c9b web: fix tests 2024-04-02 11:51:33 +05:00
Abdullah Atta
b36e6faac5 web: fix notebook tests 2024-03-21 11:09:05 +05:00
Abdullah Atta
9116a24392 global: update license year to 2023 2023-01-16 13:48:28 +05:00
Abdullah Atta
1fc0fd5694 web: use correct env variables for login tests 2023-01-06 17:44:07 +05:00
Abdullah Atta
e43ee80fdb web: update login tests 2023-01-06 17:44:07 +05:00
Muhammad Ali
2beccd6918 web: add tests for backups (#1542)
Signed-off-by: Muhammad Ali <alihamuh@gmail.com>
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
2023-01-04 12:34:15 +05:00
Abdullah Atta
db4126fe16 web: silently ignore non-applicable sort options in test 2023-01-03 21:37:19 +05:00
Muhammad Ali
00da012b3f web: add sorting tests for notes, notebooks, tags & topics (#1490)
Signed-off-by: Muhammad Ali <alihamuh@gmail.com>
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
2023-01-03 15:07:11 +05:00
Abdullah Atta
d31a43b463 web: rewrite the whole test suite to be more resilient
**Why?**
The old test suite was a confusing mess, hard to maintain, update, and
add more tests to. It lacked a much needed layer of expressivity &
the reusable functions were all over the place.
Since it used a global `page` (by mistake), it couldn't run in parallel.
Moreover, the global `page` approach caused random flakiness.

All the above reasons led to this OM (Object Model) based approach to tests.
The tests are now much more expressive, reslient, resuable & easier to
maintain. During the rewriting process I also added a couple more
tests (about 10) so this is a net improvement.

Previously, running the tests were also quite slow (15-25s avg). This has
now been improved to (5-8s avg) by running the tests in production.
This means the app now requires to be built before running the tests:

```sh
npm run build:test:web # this is only required once
npm run test:web
```
2022-09-14 11:50:24 +05:00
Abdullah Atta
f60fc39ec0 web: fix e2e tests that download files 2022-09-08 13:53:12 +05:00
Abdullah Atta
d81f5dba65 refactor: migrate to theme-ui from rebass 2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a docs: add license header 2022-08-30 16:17:04 +05:00
thecodrr
e898ef5d86 refactor: run prettier on the whole codebase 2022-08-26 16:19:39 +05:00
thecodrr
97dfc4e146 chore: clean up the repo for public 2022-08-10 12:47:26 +05:00
thecodrr
d221cf8f6c test: make sure all tests pass 2022-07-26 23:19:31 +05:00
thecodrr
6b4d2b9de4 Merge branch 'develop' into feature/migrate-tiptap-editor 2022-06-28 08:10:05 +05:00
thecodrr
63e1007003 test: make sure all tests pass 2022-04-07 02:30:36 +05:00
thecodrr
23347a3f77 feat: add basic tiptap editor 2022-04-06 22:59:53 +05:00
thecodrr
1db3e1b8d0 feat: improve checkout reliability and add regional pricing 2022-04-06 02:31:42 +05:00
thecodrr
fde86db58d fix: improve note saving — make it faster and resilient 2022-03-16 20:45:16 +05:00
thecodrr
111ffa94ce fix: make sure all tests pass 2022-02-15 10:21:52 +05:00
thecodrr
313957b736 fix: loading stuck on recovery finish 2022-01-08 14:28:49 +05:00
thecodrr
54c013fb15 feat: finalize account recovery 2022-01-08 14:28:49 +05:00
thecodrr
f93f6f892e feat: reenable account password change 2022-01-08 14:28:49 +05:00
thecodrr
837ad7772b test: add checkout tests 2021-12-28 13:40:44 +05:00
thecodrr
60dcf14ce7 test: make sure all tests pass 2021-12-16 11:39:54 +05:00
thecodrr
6e79ae6e06 fix: focus moves to editor when typing in title
streetwriters/notesnook#153
2021-12-11 13:01:04 +05:00
thecodrr
dd9fb21933 fix: format changes are not saved in editor 2021-12-10 10:08:20 +05:00
thecodrr
983d6fa2d0 fix: editor word count is not cleared in new note 2021-12-10 09:30:54 +05:00
thecodrr
dd5a249ea8 test: add stress test for note creation & switching 2021-12-08 23:25:09 +05:00
thecodrr
284f46ad02 test: add tests for tags 2021-12-07 19:03:44 +05:00
thecodrr
dd11b47bbe ci: test only on firefox & webkit 2021-11-02 15:32:40 +05:00
thecodrr
96f61df686 test: add test for note unlocking and editing 2021-07-18 18:02:13 +05:00
thecodrr
2234a11e6f test: fix all tests 2021-07-17 13:19:03 +05:00
thecodrr
8be672e620 test: add tests for note export 2021-07-09 01:13:26 +05:00
thecodrr
9538b93629 test: add timeouts for failing tests 2021-07-08 12:40:53 +05:00
thecodrr
2f20ac0120 ci: fix note creation automation 2021-07-07 14:29:51 +05:00
thecodrr
574fc935b2 ci: use @playwright/test 2021-07-07 12:46:20 +05:00
thecodrr
22ae3583db ci: fix all tests on all browsers 2021-07-07 12:44:50 +05:00
thecodrr
ed5046ce1c fix: notes test should now pass 2020-12-01 12:56:09 +05:00
Abdullah Atta
c0a99427d9 test: setup E2E Tests (#161)
* test: intialize testing environment

* test: add an example test for reference

* test: add simple navigation test

* some initial tests

* some changes

* name and other small changes

* permanently delete a note

* permanenlt delete a note

* test: improve test readability

I have added different id builders for building test ids. They make the tests more readable and fluent.

* test lock a note

* test add a note to notebook

* test favorite a note

* test pin a note

* test: further improve test readability

basically I refactored some frequently performed actions into helper functions

* test: check for presence of toast

* test: properly test pinned note

* test: increase tests reliability

* test: fix all tests

* perf: load 2co script & fonts when needed

* ci: initialize e2e gh test runner

* ci: do not run npm ci

* test: fix lock note test for all browsers

* ci: fix playwright tests

* ci: fix yaml syntax error

* ci: no need to use custom ssh-agent action for eslint

* test: improve lock a note test

* ci: add GH_DEPLOY_KEY env in eslint.yml

* test: check for state: "visible" in isPresent

* test: do not check for toast in lock a note test

* test: log crypto error to console

* test: skip "lock a note" test for now until further investigation

* ci: only run tests on firefox & chromium

* fix: fix useMediaQuery for WebKit browsers

* ci: try webkit once again

* properties tests

* test tag a color /properties

* test: run some tests sequentially and independently

* test: reenable all tests

* fix: user only able to type on character in title box

* test: skip lock/unlock tests in CI

* test edit a notebook

* test: fix all tests

* test: fix and add more notebook tests

* test: do not only run edit topics test

* test: make sure all notes tests pass

* test: skip add note to notebook tests for now

* test: make sure all tests pass

Co-authored-by: alihamuh <alihamuh@gmail.com>
2020-09-28 14:31:45 +05:00