Commit Graph

287 Commits (75ff4db4aaf17748e4c5d34c04447bc846cb2eea)

Author SHA1 Message Date
sallto 6dd2e69b23 fix: Renaming the homepage makes it no longer the homepage 2022-11-09 11:09:21 +08:00
Peng Xiao cff3f155ad test: add a test case for whiteboard context menu 2022-11-07 16:52:43 +08:00
Peng Xiao d45e5507b5 fix: e2e issue 2022-11-04 23:03:43 +08:00
Peng Xiao c03b8503b0 test(whiteboard): new e2e cases 2022-11-04 23:03:43 +08:00
Peng Xiao 0903af6ab3 test(e2e): add a test case for whiteboard quick add 2022-10-10 17:12:23 +08:00
Konstantinos Kaloutas 30ffaf9b2e fix: e2e tests 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas 23f44a5e50 fix: e2e tests 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas f9644ab37b chore: add hiccup test 2022-10-10 13:42:22 +08:00
Konstantinos Kaloutas a36f56c8df chore: add tests 2022-10-10 13:42:22 +08:00
Peng Xiao e8e80ed2aa fix: e2e 2022-10-02 13:19:49 +08:00
Konstantinos Kaloutas 01eb87d27c fix: e2e tests 2022-09-29 14:11:47 +03:00
Peng Xiao ca7a78b7d5 fix: e2e failure 2022-09-24 10:47:08 +08:00
Peng Xiao 4d86f4f53f Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-10 00:45:27 +08:00
Konstantinos Kaloutas 44d0cd172f chore: use the axe core playwright package 2022-09-09 12:13:56 +08:00
Peng Xiao 839b5f35f9 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-06 21:31:57 +08:00
Andelf 320024f764 fix(e2e): wrong promise usage 2022-09-06 12:52:53 +08:00
Andelf 43dd321ce4 test(e2e): split build and test 2022-09-06 12:52:53 +08:00
Andelf dee6c9a712 test(e2e): fix random fail in auto-completion 2022-09-06 12:52:53 +08:00
Konstantinos Kaloutas ed743d9895 fix: drawing test 2022-09-05 13:32:39 +03:00
Konstantinos Kaloutas 1e15062896 chore: add more tests and ids 2022-09-05 13:24:04 +03:00
Konstantinos Kaloutas 8ccd6f0507 chore: add whiteboard tests 2022-09-02 16:21:25 +03:00
Peng Xiao 33885e619b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-01 10:29:29 +08:00
Viktor Moros c7703e5e93 Adding E2E test for scenario with text after a soft return 2022-08-31 22:39:04 +08:00
Junyi Du 87e8bb94bb test(e2e): improve stability 2022-08-31 21:15:01 +08:00
Junyi Du 663cd6df7f dev: e2e testing workflow of running multiple times 2022-08-31 21:15:01 +08:00
Peng Xiao 694e626b5d fix: page rename e2e 2022-08-29 21:38:05 +08:00
Konstantinos Kaloutas 6bf5c441d9 feat: enable detailed report 2022-08-26 11:52:23 +08:00
Konstantinos Kaloutas c3799b3f23 feat: skip to main content button 2022-08-26 11:52:23 +08:00
Konstantinos Kaloutas 54e43c71dd enhance: add basic a11y test 2022-08-26 11:52:23 +08:00
Andelf f111ec3f8e fix(test): resolve e2e fails 2022-08-22 19:07:40 +08:00
Konstantinos Kaloutas b4fbd023a7 fix: remove inconsistent test 2022-08-22 19:07:40 +08:00
Konstantinos Kaloutas f60fe88855 enhance: work on e2e tests 2022-08-22 19:07:40 +08:00
Tienson Qin 0298fca343 fix: e2e 2022-08-19 13:04:43 +08:00
Andelf 18caeec139 test(e2e): pass test on windows 2022-08-18 10:50:04 +08:00
Tienson Qin f502de3ad4 fix: e2e test 2022-08-18 08:18:58 +08:00
Phoenix Eliot 9d9d8b3474
Fix: Fix undo/redo while action menu is open (#6273)
* 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>
2022-08-15 18:58:35 +08:00
Phoenix Eliot 3c6514ee4b
Fix moving cursor outside brackets (#6283)
* 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>
2022-08-15 18:47:26 +08:00
Phoenix Eliot 7cb1fc9c3c Add action whitelist and special handling for link/image input dialog 2022-08-15 17:45:39 +08:00
Phoenix Eliot 2970ff6c58 Add issue number to a previous PR's test 2022-08-15 17:45:39 +08:00
Phoenix Eliot d39ae199fb Add test for escape closing action menu
Rename 'action menu' to 'autocomplete menu'
2022-08-15 17:45:39 +08:00
Andelf 52b7a5e203 test(e2e): add test case page name
fix: lint
2022-08-08 13:34:47 +08:00
Phoenix Eliot 0747d5ccb7
Fix pasting race condition (#5964)
* 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
2022-08-02 10:54:09 -04:00
Andelf 57a54078fc test(e2e): fix fail on basic test 2022-07-26 14:59:31 +08:00
Andelf 38c5a62415 test(e2e): fix cards test 2022-07-26 12:48:04 +08:00
Gabriel Horner f26681c2ee Skip intermittent failing test and add more testing advice 2022-07-25 14:17:46 -04:00
Gabriel Horner 25943d253d Unskip test as it was fixed in #6088 2022-07-20 10:38:08 -04:00
Tienson Qin 19455ed2c7 wait for 6s 2022-07-20 13:56:04 +08:00
Tienson Qin 91c09889f0 Wait a bit longer for the cards number update 2022-07-20 13:56:04 +08:00
Gabriel Horner 48306d37aa test: temporarily skip intermittently failing test 2022-07-18 10:54:55 -04:00
Junyi Du 33318c395b test(e2e): temporarily skip alias testing 2022-07-15 16:35:43 +08:00
Junyi Du ee3ac7dd21
fix: blocking hooks when setup repo; recover diacritic e2e test (#5952)
* fix: blocking hooks when setup repo; recover diacritic e2e test

* test(e2e): update e2e test for the new selection UI
2022-07-13 21:30:17 +08:00
Andelf 53c0e79483 test(e2e): add simple flashcards check 2022-07-12 10:56:50 +08:00
Andelf d05392e139 test(e2e): skip page-search test for now 2022-07-07 01:42:16 +08:00
Andelf dda818c26a fix(e2e): add missing esc for (()) 2022-07-07 01:42:16 +08:00
Andelf 6afdfedb51
fix(test): add delay to e2e testing (#5804) 2022-06-23 22:38:57 +08:00
Andelf 0f30893636
Fix dnd e2e tests (#5762) 2022-06-20 13:04:26 +08:00
Charlie 55ccdd5dba
Feature/onboarding Quick tour (#5247)
* enhance(ui): polish elements of left sidebar

* enhance(ui): active state of nav item from left sidebar

* enhance(ui): active state of nav item from left sidebar

* enhance(ui): WIP quick tour tips

* enhance(ui): WIP quick tour tips

* enhance(ui): WIP quick tour tips

* enhance(ux): add quick tour palette command

* enhance(ui): add step dots for quick tour tips

* enhance(ux): title hints for sidebar link items

* fix(ui): active state for journals from left sidebar

* enhance(ux): support quick tour command when initial app

* fix(ui): position of journal page quick tour tip box

* fix: cljs lint

* fix: remove unused method

* fix(e2e): e2e test for new left sidebar
2022-05-31 16:41:17 +08:00
Andelf f94c0184d1 fix(test): random failure of code testing 2022-05-18 02:35:25 +08:00
Junyi Du 8d8dde5024 test(e2e): eliminate timeouts of fav tests 2022-04-26 15:00:45 +08:00
Junyi Du 10eb18a137 test(e2e): codestyle tuning 2022-04-26 15:00:45 +08:00
Junyi Du dc8be8cdfc test(e2e): handle case that has no ClipboardItem available 2022-04-26 15:00:45 +08:00
Junyi Du ae29310cff test(e2e): activate copy & paste block ref test 2022-04-26 15:00:45 +08:00
Junyi Du 472f548d50 test(e2e): emulate copy-to-clipboard when no webAPI permission 2022-04-26 15:00:45 +08:00
Junyi Du 15f9657c06 test(e2e): logseq url at running graph 2022-04-26 15:00:45 +08:00
Junyi Du c1d6abaed7 test(e2e): title property change name tests 2022-04-26 13:57:07 +08:00
Tienson Qin c049f1dd9f Comment pageerror check on e2e tests 2022-04-24 11:17:47 +08:00
Tienson Qin b18c8af2c1 Add e2e tests 2022-04-23 06:50:22 +08:00
Andelf 93faf552ac fix(test): random fail while typing 2022-04-22 11:02:42 +08:00
Andelf a87e5ea0fa fix: not e2e test clipboard 2022-04-21 18:36:58 +08:00
Tienson Qin 274639fe78 fix: editor freeze when cut and paste blocks at the bottom 2022-04-21 18:36:58 +08:00
Andelf b92f48a047
Refactor randomized e2e tests (#4974)
* fix(test): disable some random check
* fix(test): fix template test
* fix(test): reduce random test size
2022-04-21 18:15:53 +08:00
Andelf 8e74b06103 fix(test): add delay to clickNew 2022-04-21 13:07:30 +08:00
Tienson Qin a569d38f18 fix: e2e tests 2022-04-21 09:25:14 +08:00
Tienson Qin 904eff6d9d
Core outliner operations refactoring (#4880)
* Add outliner nested transact!

Copied the code mostly from https://github.com/logseq/logseq/pull/4671
by zhiyuan

* refactor: insert-blocks

* fix: insert-blocks

* fix: move cursor to the last block when inserting

* fix: replace the current block when inserting and its content is empty

* keep only :insert-blocks

* expose only :delete-blocks

* Use existing implementations for move-nodes-up-down and

indent/outdent.

* fix editing state not updated immediately

* fix editing status

* fix: avoid recursive copy

* fix: inserting blocks after an empty block

* Implement move-blocks with insert-blocks

* fix: block left

* Implement move-blocks-up-down with move-blocks

* fix: paste text

* Implement indent-outdent-blocks with move-blocks

* fix: indent/outdent

* feat: multiple blocks drag && drop

* fix: indent/outdent blocks

* fix: drag drop

* Port unit tests for outliner.core

* enhance: open collapsed parent when indenting blocks

* refactor: block selection

* fix: indent/outdent blocks with different levels

* Add instrument on invalid outliner structure

* fix: can't write a block if the page has any outdated blocks

* fix: editing status for empty page

* fix: multiple drag & drop

* fix: drag & drop disallows moving from parents to its child

* fix: public property

* fix: can't delete first empty block

* Remove unused code

* fix: e2e tests

A workaround is to not select/highlight the block when pressing esc if it has
fenced code.

* remove unused code

* Add batch transaction test

* fix: update :block/page when dragging targets' children to another page

* Add more tests

* Simplify extract

* Replace db/get-conn with db/get-db

* Simplify extracting blocks from ast

* Code cleanup

* Code cleanup

* Add outliner core fuzzy tests

* Remove unused code

* fix: cursor not jump to the upper block when pressing Enter in the beginning

* fix: Enter in the beginning of a non-empty block

* Fix lint warnings

* Add editor random e2e tests

* Fix typo

* enhance: move some fns and add some comments

* enhance(outliner): add page-block? util

* fix: increase td width to prevent content overflow

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* First pass at file tests for file-sync

Each action usually passes by 5th try

* Fix two incorrect calls caught by tests

* More test improvements

- Easier auth setup
- subdirectory is configurable
- list graphs api also exercised

* Address cleanup from #3839

- Remove unused translation key
- Delete or TODO commented code
- Capitalize notifications to users

* fix quick capture template not working

* enhance(sync): add logout

* enhance: add logout i18n

* fix(plugin): sometimes plugin settings of gui not work when entry from app settings

* enable show-brackets? toggle for orgmode [[file:./pages/demo.org][demo]]

* fix(sync): fix unfinishable sync loop

* feature: logseq protocol; refactor persistGraph

* fix: deeplink support

* fix: broadcast persist graph on opening new graph with logseq protocol

* feat: logseq protocol open action for page-name and uuid

* fix: logseq protocol graph param validation

* ux: copy logseq URL of block

* enhance: remove the redundant 'open' from logseq protocol (v0.1)

* ux: page dropdown button for copy page URL

* chore: logseq protocol comments

* don't create new contents file when changing format

Logseq now creates a new contents file when users try to toggle the
preferred format, which causes file duplications error.

* fix pasting in src block not working on iOS

close https://github.com/logseq/logseq/issues/4914

* fix playing video goes into editing mode on iOS

* fix copy to clipboard failure on iOS

* add Podfile item

* fix mobile toolbar order not persisting after restart

* test(e2e): add test for backspace and cursor pos (#4896)

* test(e2e): add test for backspace and cursor pos
* fix(test): refine, fix wrong helper

* fix(ui): warn about illegal git commit interval

* enhance(editor): allow global git cmd shortcut

* style(settings): line-space of general/journals

* enhance(editor): accept enter in dummy block

Fix #4931

* fix editing state not updated immediately

* fix: can't write a block if the page has any outdated blocks

TODO: clean outdated blocks

* fix: editing status for empty page

* Random tree for outliner core tests

* Add pre assertions and fn docs based on Zhiyuan's suggestions

* Made some changes based on Gabriel's suggestions

* fix: tests

* fix: save current block before moving

* Updated the timeout to 100ms based on llcc's suggestion

https://github.com/logseq/logseq/pull/4880#discussion_r851966301

* api-insert-new-block! supports replace-empty-target?

* fix: replace all :reuse-last-block? usage

Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: charlie <xyhp915@qq.com>
Co-authored-by: Junyi Du <junyidu.cn@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
2022-04-19 11:14:38 +08:00
Andelf 115054736d
test(e2e): add test for backspace and cursor pos (#4896)
* test(e2e): add test for backspace and cursor pos
* fix(test): refine, fix wrong helper
2022-04-15 19:50:25 +08:00
Andelf 78d9c6f2fe fix(e2e): wrong log match condition 2022-04-11 11:45:32 +08:00
Andelf cd8a4fe339 fix(e2e): occasional failures 2022-04-11 11:45:32 +08:00
Andelf d13b2a9dce refactor(e2e): add block fixture helpers 2022-04-11 11:45:32 +08:00
Tienson Qin d27ec18a65 fix: disable editing after collapse/expand through block controls 2022-04-05 12:44:46 +08:00
Tienson Qin 4bf2af59ef fix: uncomment tests 2022-04-05 12:44:46 +08:00
Tienson Qin 5a0a199a1c fix: e2e tests 2022-04-05 12:44:46 +08:00
Tienson Qin 2b0a56018c fix: Disappearing children
close #4814
2022-04-05 12:44:46 +08:00
Tienson Qin 24e165ff7e fix wrong commit 2022-04-02 21:57:59 +08:00
Andelf ec43dd7ee1 fix(test): e2e fails
refactor(e2e): print logs when error
2022-04-02 21:52:28 +08:00
Andelf 619368d67d fix(test): add time wait to page-search e2e 2022-04-02 21:49:37 +08:00
Andelf f1af5344b2 fix(test): refactor and fix all e2e tests 2022-04-02 21:49:34 +08:00
Tienson Qin a630983cdc fix lint warnings 2022-04-02 21:40:28 +08:00
Charlie 0d3ac91ca3
Feature/Setups of Onboarding Process (#4580)
UX enhancement: onboarding setup graphs 

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-04-02 21:37:38 +08:00
Junyi Du 65c76f79bb chore: rename variable names in keyboard event e2e tests 2022-04-01 17:36:39 +08:00
Junyi Du a97c37c2ad test(e2e): fix missing event_ property of KeyboardEvent in Google Closure Library 2022-04-01 17:36:39 +08:00
Junyi Du f4ce0ea62f test(e2e): composition events 2022-04-01 17:36:39 +08:00
Junyi Du 1bd33fdb5d test(e2e): win10 RIME case fix 2022-04-01 17:36:39 +08:00
Junyi Du a520781503 test(e2e): addressing #3440 related case on macOS 2022-04-01 17:36:39 +08:00
Junyi Du 2cfa95d17b test(e2e): addressing #3251 and #3440 2022-04-01 17:36:39 +08:00
Junyi Du e8aa586707 test(e2e): keyboard event capture script 2022-04-01 17:36:39 +08:00
Junyi Du 75ab20e1e7 test(e2e): add keyboard event simulation 2022-04-01 17:36:39 +08:00
Peng Xiao 4ea3d6eef8 fix: replace-block-reference-with-content-at-point not working 2022-03-17 16:16:24 +08:00
Andelf d985501186 test(e2e): add drag and drop test skeleton 2022-03-15 11:56:32 +08:00
Andelf 2106a3ec44 test(e2e): add test case for #4320 2022-02-24 23:44:57 +08:00
Junyi Du 541a2ccd50 test(e2e): add test for favorite and recent items 2022-02-19 10:47:16 +08:00
Junyi Du bb0df09cd9 test(e2e): add test for renaming pages 2022-02-19 10:47:16 +08:00
Andelf 4735a981a0 test(e2e): add test case for #4178 2022-02-11 10:57:38 +08:00
Tienson Qin d18d2f24ca fix e2e tests 2022-01-28 20:28:50 +08:00
Junyi Du 694dfe52ec enhance: page name index sync normalization; e2e alias diacritic test 2022-01-20 10:33:50 +08:00
Andelf 5ce66ac215 test(e2e): add test case for #3944 2022-01-19 11:12:38 +08:00
Tienson Qin 6aba8c3241
Improve long page editing performance (#3855)
* Remove expensive parsing when saving files

* Add limit to page blocks query

* Don't collapse block's body to make it compatible with other tools

* Alert if there're unsaved changes when switching graphs

* DB schema migration for :block/collapsed? from it's property

Co-authored-by: Andelf <andelf@gmail.com>
2022-01-18 10:37:31 +08:00
Andelf ddbe7cabeb test(e2e): refine condition wait 2022-01-17 17:26:42 +08:00
Andelf f5be683963 test(e2e): allow test with newly opened graph 2022-01-17 17:26:42 +08:00
Junyi Du 29c4bb4048 test(e2e): fix CI page ref check with no content display 2022-01-13 14:42:18 +08:00
Junyi Du 8279f008c6 test(e2e): tailor test cases 2022-01-13 12:21:22 +08:00
Junyi Du 1612a306f5 test(e2e): improve page-ref test robustness 2022-01-13 12:21:22 +08:00
Junyi Du 4775be1baf fix: lowercased block content in search result 2022-01-13 12:21:22 +08:00
Junyi Du 9270c79078 test(e2e): examinate search results 2022-01-13 12:21:22 +08:00
Junyi Du 6c686c4ead test(e2e): page alias with diacritics tests 2022-01-13 12:21:22 +08:00
Andelf 893d42af52 test(e2e): shorten sleep wait 2022-01-08 13:36:52 +08:00
Charlie 3ea7635daa
Enhance/marketplace (#3686)
Marketplace enhancement

Nested modal support
2022-01-07 19:00:35 +08:00
Peng Xiao 17b5cdb9e8
feat: add a secret global flag to load graph progammtically (#3531)
* feat: add a secret global flag to load graph from a user defined dir

* fix: use LOGSEQ_OVERWRITE_OPEN_DIR env var to overwrite the openning graph dir

* e2e: add a test for load & check saved graph data

* fix: should also pass in process.env for testing fixtures

* feat: new way to set open dir folder

* fix: e2e

* fix: remove playwright global flag check

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-01-05 21:05:05 +08:00
Junyi Du 977add22ff test(e2e): fix playwright test timeout 2022-01-04 21:37:44 +08:00
Junyi Du 6fe10a587e test(e2e): text normalization 2022-01-04 21:37:44 +08:00
Andelf aaceac2c96 test(e2e): monitor error logs 2021-12-25 13:41:22 +08:00
Junyi Du 6aafeb40ca test(e2e): split util functions 2021-12-21 12:38:08 +08:00
Junyi Du 8798ffed06 test(e2e): add page alias tests 2021-12-21 12:38:08 +08:00
Junyi Du 09120cfce2 test(e2e): add more autocomplete test 2021-12-20 12:11:11 +08:00
Junyi Du c5d39cdb8a fix: abuse of keycode cause unexpected behaviour under different keyboard layouts 2021-12-20 12:11:11 +08:00
Andelf 585e7ba1f5 test(e2e): add test for block with code and multi properties 2021-12-16 19:23:10 +08:00
Andelf 34769bc989 test(e2e): add cases for code editing 2021-12-15 12:28:02 +08:00
Andelf 13e3ee2cc9 fix(editor): handle code block with non-latin1 chars 2021-12-13 14:59:29 +08:00
Andelf 0f650741a8 fix(test): unused imports 2021-12-12 16:24:14 +08:00
Andelf 0d26856206 test(e2e): add cases for code-editing 2021-12-12 16:24:14 +08:00
Andelf d5a85c959f fix(test): adapt tests to the new left sidebar 2021-12-10 14:14:57 +08:00
Charlie c63f1f0d15
Enhance/left sidebar responsive (#3376)
* improve(ui): [WIP] refactor left sidebar component

* improve(ui): [WIP] refactor left sidebar component

* improve(ui): polish left sidebar for mobile

* improve(ui): polish left sidebar for mobile native

* fix: unnecessary stateful component

* improve(ui): tweak padding inner left sidebar

* fix(tests): update tests

* fix(ui): close left sidebar when create page on sm breakpoint

* improve(ui): tweak `--ls-left-sidebar-sm-width` to 70%

* fix(ui): overlap between left sidebar and toolbar right area on mobile
2021-12-08 21:13:57 +08:00
Andelf 295c6d7b91 fix(test): make a fixme in autocompletion 2021-11-30 11:05:48 +08:00
Andelf 147b2ccf70 test(e2e): refactor using fixtures 2021-11-30 11:05:48 +08:00
Andelf ee38781656 test(e2e): add test cases for hotkey 2021-11-30 11:05:48 +08:00
Andelf 13aefde53c fix(test): minor fix for e2e test 2021-11-24 17:20:01 +08:00
Andelf aae4a8b18c test(e2e): add test cases for auto-completion 2021-11-24 17:20:01 +08:00
Andelf 8d0d4ae3a2 test(e2e): add playwright test 2021-11-23 17:26:53 +08:00