* enhance: only autopair tilda when text is selected
* Enhance/editor string formatting e2e (#48)
* enhance(E2E): Test editor italic, bold, strikethrough and underline.
...
---------
Signed-off-by: Bad3r <bad3r@protonmail.com>
* enhance(perf): improve performance for both insert and delete
* fix: remember cursor pos before executing the body in a transaction
Otherwise, the edit-block and position could be changed
* fix: disable delete-concat when there's no child or right sibling
---------
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
* Add data attribute to modals for testing
* Add test for undoing with action menu open not destroying text
* Add test for undo closing the action menu
* Add simple fix for undo/redo with action menu open
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
* Add data attribute to modals for testing
* Add several tests for moving cursor outside/within brackets
Update tests to be more reliable and DRYer
Rename action menu to autocomplete menu; fix test race condition
Rename 'action modal' to 'autocomplete menu'
* Check for being outside of brackets on every keyup
Remove dead code
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
* Fix re-running e2e tests when it reuses old app instances
I'm not certain this doesn't break things for other OSes/setups, but it was required for e2e tests to run after the first time I ran them. It keeps a list of all previous (now missing) graphs in the sidebar, and this flow properly causes the new one to be selected, where the old flow did not match what the UI was doing anymore.
* Add e2e test for quickly pasting blocks after editing new blocks
* Fix pasting quickly after editing a new block
* Remove "test.only" focus
* Fix clicking add button in first test by closing error notification
* Improve some flaky race conditions in tests
* Remove unrelated waits in E2E tests
* Update playwright version; update tests to match
* Fix logic for checking if there are unsaved edits
* Fix typescript complaints
* Reduce how long we wait after closing each error popup