Abdullah Atta
d6608325b4
web: skip education plan in tests
2023-09-25 12:27:09 +05:00
Abdullah Atta
48061962b1
web: fix backup/export tests
2023-09-05 17:47:28 +05:00
Abdullah Atta
44e4722de2
global: fix @notesnook/core direct paths
2023-08-14 09:54:57 +05:00
Abdullah Atta
71aee40f8d
web: improve backups test reliability
2023-08-07 05:49:02 +05:00
Abdullah Atta
330b227027
web: improve real time sync test reliability
2023-08-05 16:27:42 +05:00
Abdullah Atta
32b8b008f2
web: make export tests pass
2023-08-01 20:39:16 +05:00
Abdullah Atta
eb8b58a559
web: migrate navigation to typescript
2023-06-20 12:36:21 +05:00
Abdullah Atta
605e045ff7
web: fix type in SearchViewModel
2023-06-17 13:36:01 +05:00
Abdullah Atta
5d1ba7fa0a
web: new dialog based settings ( #2745 )
2023-06-16 19:10:02 +05:00
Abdullah Atta
8f4bd20253
web: fix delete all notes in topic test
2023-06-16 16:54:04 +05:00
Abdullah Atta
bbb43bc8b4
web: replace date-time in test snapshot with xxx
2023-06-05 15:29:10 +05:00
Abdullah Atta
765fcafc38
web: fix all tests & improve notebook/topic deletion
2023-03-18 11:58:30 +05:00
Abdullah Atta
d2f39df3bf
web: make tests more reliable
2023-02-23 15:14:49 +05:00
Abdullah Atta
060952697a
web: bring back title in context menu
2023-02-13 18:13:54 +05:00
Abdullah Atta
a0579278c9
web: fix all e2e tests
2023-02-13 18:13:54 +05:00
Muhammad Ali
d3a3dc9200
web: confirm before deleting a reminder ( #1843 )
...
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2023-02-04 11:30:04 +05:00
Abdullah Atta
ffacb8818c
web: add more tests for reminders
2023-01-17 11:45:04 +05:00
Abdullah Atta
9116a24392
global: update license year to 2023
2023-01-16 13:48:28 +05:00
Abdullah Atta
6b71509b74
web: expose descriptionText again
2023-01-14 16:00:22 +05:00
Abdullah Atta
6ffa192f08
web: fix failing reminder tests due to malformed time format
2023-01-14 12:01:40 +05:00
Abdullah Atta
f254fc5c58
web: fix all other failing tests
2023-01-14 11:22:33 +05:00
Abdullah Atta
a74b910478
web: add tests for reminders
2023-01-14 11:22:33 +05:00
Abdullah Atta
7e9dc0e55c
web: wait for route header to be visible before running tests
2023-01-13 19:02:33 +05:00
Abdullah Atta
1fa0203651
web: test notes deletion when deleting notebook/topic
2023-01-13 17:51:40 +05:00
Abdullah Atta
68196b2d99
web: use fallback testId for locationFormSubmitButton
2023-01-12 14:40:10 +05:00
Abdullah Atta
e2f2f0866d
web: fix checkout tests
...
Paddle changed their submit button test id
2023-01-11 14:12:17 +05:00
Muhammad Ali
8e6bbb9227
web: do not ignore line breaks when counting words ( #1625 )
...
Signed-off-by: Abdullah Atta <thecodrr@protonmail.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2023-01-10 16:06:20 +05:00
Muhammad Ali
b0417387b4
web: fix issue where searched topics cannot be opened ( #1593 )
...
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2023-01-10 15:04:31 +05:00
Abdullah Atta
206b72a5f8
web: click on submit button on password entry in login test
2023-01-06 17:44:07 +05:00
Abdullah Atta
e43ee80fdb
web: update login tests
2023-01-06 17:44:07 +05:00
Abdullah Atta
5a540362c0
web: fix backup tests
2023-01-04 12:42:52 +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
89123c0be5
web: right click on selected items deselects them
2022-09-29 15:55:52 +05:00
Abdullah Atta
6d75476e7c
web: optimize tests by ~120% ( #1018 )
...
This is mainly done via sharding, caching & reducing total work:
1. `terser` is turned off when generating test build
2. `nx` distributed cache allows reusing build outputs
3. `playwright` sharding allows running tests in parallel
This can further be improved by using `swc` & `esbuild` during build
2022-09-21 14:01:32 +05:00
Ammar Ahmed
e5e965415d
feat: realtime & auto sync for all users ( #944 )
2022-09-20 18:33:55 +05:00
Abdullah Atta
508d1c46f2
web: add tests for keyboard list navigation
2022-09-18 17:36:15 +05:00
Abdullah Atta
02a0ccebee
web: fix failing tests
2022-09-18 16:37:33 +05:00
Abdullah Atta
7cc8b74a7a
web: add more waitFors for failing tests
2022-09-17 00:45:29 +05:00
Abdullah Atta
bd3b5a4b98
web: redirect if logged in user navigates to unauthorized routes ( fixes #907 )
2022-09-17 00:11:48 +05:00
Abdullah Atta
fd8e14e9ff
web: check logged out status using its locator
2022-09-16 09:32:07 +05:00
Abdullah Atta
6f2c00b090
web: do not wait for sync complete in login test
2022-09-16 08:07:27 +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