Abdullah Atta
f2c08c89b0
desktop: add support for running web tests via desktop app
2026-05-30 11:00:35 +05:00
Abdullah Atta
c85c51ec08
web: improve tests reliability
2026-03-07 12:47:44 +05:00
Abdullah Atta
36584175e2
web: add support for test throttling
2026-03-07 12:47:44 +05:00
01zulfi
b0c18a8ece
web: allow saving note from status icon click & tab menu ( #8316 )
...
* web: allow saving note from status icon click & tab menu
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
* web: directly save content instead of using events
---------
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2025-12-30 13:27:10 +05:00
Abdullah Atta
3821dc29ef
web: fix some editor tests on macos
2025-09-12 08:28:39 +05:00
01zulfi
0cc33f7a81
core: fix title generation when title format is set to $headline$ ( #7739 )
...
* core: generate headline title until user edit && update headline extraction
* when title format is set to $, keep generating headline title until user manually edits the title
* extract headline from first html tag with content rather than first paragraph
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
* core: extract headline up to 150 chars regardless of html tag
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
* core: improve note headline title code quality
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
* core: remove HEADLINE_CHARACTER_LIMIT constant
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
* web: only update title input if note title changes
---------
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2025-04-10 10:17:45 +05:00
Abdullah Atta
8d83f5474d
web: fix editor tests
2025-02-24 11:53:51 +05:00
Abdullah Atta
ae141ac9c5
web: fix control + alt + right/left arrow tests
2025-02-21 14:26:50 +05:00
01zulfi
ada98fca93
web: hide undo & redo buttons for readonly notes ( #7541 )
...
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
2025-02-13 10:13:44 +05:00
01zulfi
71db85458d
web: add go to next/previous tab shortcut ( #7109 )
...
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
2025-01-02 15:13:49 +05:00
01zulfi
c701baaa2c
web: better ux when autosave is off ( #6610 ) ( #6849 )
...
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2024-12-23 14:30:03 +05:00
Abdullah Atta
fb2de1753e
web: fix full screen test
2024-04-26 09:06:00 +05:00
Abdullah Atta
c7142e409b
web: fix more tests
2024-03-21 11:22:11 +05:00
Abdullah Atta
9116a24392
global: update license year to 2023
2023-01-16 13:48:28 +05:00
Abdullah Atta
c75f750215
web: update tests
2023-01-11 14:37:13 +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
Abdullah Atta
5643525829
web: fix editor content resets on rerender
...
this was an annoying issue where any kind of re-render caused the editor
content to be reset.
2022-09-22 13:20:07 +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
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
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