Commit Graph

315 Commits (fix/todo-marker)

Author SHA1 Message Date
Junyi Du b11721dcc3 test(e2e): fs testings - special page name persisting 2023-03-17 01:04:31 +08:00
Junyi Du 3bd3991d9a test(e2e): fs testings - file create, rename, unlink 2023-03-17 01:04:31 +08:00
Konstantinos Kaloutas 537b715e45 add more tests 2023-03-13 14:33:14 -04:00
Konstantinos Kaloutas cff17ab891 remove create block test 2023-03-13 14:33:14 -04:00
Konstantinos Kaloutas aabd004fac add tests 2023-03-13 14:33:14 -04:00
Konstantinos Kaloutas e52bda80c9 remove keyboard delay 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas f6b9a55cbc Revert "attempt to lock clipboard"
This reverts commit b659cb07ca.
2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas 5d646b67c1 fix: e2e tests 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas b1249c09d8 fix: e2e tests 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas 0f393a7f46 attempt to lock clipboard 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas aded90d03e fix: test names 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas 723bf3806d add more tests 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas cd7ca56d3f refactor: e2e tests modKey 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas 271706a155 add iFrame test 2023-03-08 17:09:35 +08:00
Andelf b21edf9077 fix(test): e2e fail due to page search 2023-03-07 14:04:10 +08:00
Andelf ae82e9132e fix(test): e2e fail due to page search 2023-03-07 14:04:10 +08:00
Yichen Yan f2b99dbc4c
upgrade playwright to 1.31.0 (#8688) 2023-03-06 15:21:54 +08:00
Konstantinos 1ff15171ed
fix (Whiteboard): Paste shape (#8636)
* fix: paste shape

* fix: test

* fix: test

* fix: test

* fix: test

* fix: test

* fix: add timeout to headings test

* fix: test

* fix: e2e test

* just another attempt to fix the tests

* fix; yet another test fix

* remove the inconsistent test

* revert test change

* revert unneeded change

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-03-01 12:25:45 -05:00
Zhizhen He 25c15053d6 feat: add typos to GitHub action
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Andelf 78a65c53f0 fix e2e ci 2023-02-10 11:54:41 +08:00
Konstantinos 966d330b3d
Chore: Add heading tests (#8541)
* wip: add heading tests

* chore: add more heading tests
2023-02-08 09:47:57 -05:00
Yichen Yan a3c7308dc0
fix(query): cache special value as resolved value (#8263)
* fix(query): cache inputs as resolved values
Co-authored-by: Ben Yorke <ben@yorke.io>
2023-02-06 16:32:16 +08:00
Gabriel Horner f9604e1b07
Merge branch 'master' into feat/tweet-shape 2023-01-19 10:02:29 -05:00
Junyi Du 95724dd8af test(e2e): fix trace file dump 2023-01-18 15:27:21 +08:00
Konstantinos Kaloutas fe6a993121 fix: create new whiteboard to avoid onboarding 2023-01-16 20:11:17 +02:00
Konstantinos Kaloutas 4191fb78f2 e2e test 2023-01-16 19:03:27 +02:00
Konstantinos Kaloutas 42d3551216 e2e test 2023-01-16 17:31:40 +02:00
Konstantinos Kaloutas 3f771ff06f e2e test 2023-01-16 17:08:31 +02:00
Konstantinos Kaloutas 8966c648f7 Revert "disable tests"
This reverts commit 040becd858.
2023-01-16 16:33:30 +02:00
Konstantinos Kaloutas e2384af7d1 Revert "test e2e"
This reverts commit 897a787013.
2023-01-16 16:33:15 +02:00
Konstantinos Kaloutas 897a787013 test e2e 2023-01-16 15:55:59 +02:00
Konstantinos Kaloutas 040becd858 disable tests 2023-01-16 15:35:14 +02:00
Konstantinos Kaloutas f6abc872a6 split tests 2023-01-16 12:47:52 +02:00
Konstantinos Kaloutas 5d6c981d48 fix: e2e tests 2023-01-13 19:07:32 +02:00
Konstantinos Kaloutas 7f471e865f Merge branch 'master' into feat/tweet-shape 2023-01-13 10:58:47 +02:00
situ2001 e7a5119ce5 chore: add issue No to test description 2023-01-13 15:03:59 +08:00
situ2001 ef1febb771 fix(editor): incorrect undo/redo sequence of indent/outdent 2023-01-13 15:03:59 +08:00
Andelf 192459a23c fix(test): e2e fail due to whiteboards zoom test 2023-01-12 11:07:05 +08:00
Konstantinos Kaloutas 250421e5c7 fix: tweak zoom timeout on e2e tests 2023-01-10 10:44:28 +02:00
Tienson Qin 4e8b197174 fix: disable plugins e2e tests temporally 2023-01-09 10:32:57 -05:00
Charlie 675811ccde
Enhance/plugins (#8202)
* improve(plugins): install hooks with user options

* improve(plugin): remove todos

* improve(plugin): hook for a specific plugin

* e2e tests

* improve(ui): global search bar for the results from the custom search service
2023-01-05 19:30:41 +08:00
Konstantinos Kaloutas 7e54812756 fix: e2e tests 2023-01-05 19:27:59 +08:00
Konstantinos Kaloutas c006ac3588 fix: e2e tests 2023-01-05 19:27:59 +08:00
Konstantinos Kaloutas 1bcf8db3b7 enhance: test stability 2023-01-05 19:27:59 +08:00
situ2001 2657f5a2f1 fix(e2e): should not wait for selector when there is no onboarding button 2023-01-05 11:53:10 +08:00
Andelf fdfac2b506 fix(test): use fill instead of select-all shortcut 2022-12-30 16:26:16 +08:00
sallto e96c3403bf
fix: Datepicker behaves oddly if there are 2 datepickers visible at the same time (#7498)
fixes #7341

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2022-12-14 17:41:08 -05:00
Konstantinos 109b491042
Feat: Use tooltips instead of titles on whiteboard buttons (#7643)
Move select and pan to main toolbar
 Create tooltip component
 Add tooltip support to button, toggle, toggle groups, select and color input
 Style shortcuts on primary tools
2022-12-12 18:11:03 +08:00
Junyi db11f48ed6 test(e2e): fix dump 2022-12-06 23:01:16 +08:00
Peng Xiao 0172d937ba e2e: reenable whiteboard e2e 2022-12-05 10:48:25 +08:00
Junyi Du a84a8028bd test(e2e): alias test robustness 2 2022-12-01 15:41:37 +08:00
Junyi Du 1702993f06 test(e2e): alias test robustness 2022-12-01 15:41:37 +08:00
Junyi Du 7944f2db9c feat: content index contains title, close #7510 2022-12-01 15:41:37 +08:00
Andelf fe5d9b92d9
test(e2e): refine test cases (#7542) 2022-12-01 10:47:41 +08:00
Junyi Du 3f685cf591 feat: content index contains title, close #7510 2022-11-30 21:59:36 +08:00
Junyi Du ad92fd6435 test(e2e): cjk search 2022-11-30 21:59:36 +08:00
Andelf 166f2b2432 fix(test): code testing fail 2022-11-30 11:22:55 +08:00
Andelf c1bec2fc44 fix(test): refine e2e test 2022-11-30 11:22:55 +08:00
Andelf 7b7c766260 fix(test): do not prompt filename change 2022-11-30 11:22:55 +08:00
Junyi 32b63b9611 test: fix search e2e 2022-11-25 21:26:07 +08:00
Junyi b8bb5c9dc6 test: update cases for page content search 2022-11-25 21:26:07 +08:00
Andelf 84ac0d89ab
fix(test): e2e fail due to opened new-page dialog (#7430) 2022-11-23 16:27:08 +08:00
Andelf 8148bf4fc8 fix(test): rm wrong e2e tests 2022-11-23 14:31:31 +08:00
Andelf 40366f6dbf fix(test): use e2e to test hashtag 2022-11-23 12:21:36 +08:00
Gabriel Horner f045875460 Temporarily disable another test that is intermittently failing
E.g. see
https://github.com/logseq/logseq/actions/runs/3527181103/jobs/5915950917
2022-11-22 16:33:01 -05:00
Gabriel Horner 85e5da06b9 Temporarily disable failing test to allow work to proceed on a clean CI 2022-11-22 15:42:32 -05:00
Charlie dda1f9bd9f
Enhance / Plugin APIs (#6945)
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR

Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
charlie 93e52a7a77 fix: lint 2022-11-22 21:43:47 +08:00
charlie 3086fec490 improve(desktop): WIP refactor left sidebar 2022-11-22 21:43:47 +08:00
Peng Xiao e6fa986083 fix: skip whiteboard tests for now 2022-11-22 11:12:34 +08:00
Gabriel Horner 6f5a6dcbf7
Merge pull request #7358 from logseq/feat/color-panel
Feat (Whiteboards): Add main color panel and rearrange tools
2022-11-18 10:53:07 -05:00
Konstantinos Kaloutas 4f93f92eb0 fix: allowed attributes an add a test 2022-11-18 10:34:34 -05:00
Konstantinos Kaloutas f90cee54b1 fix: e2e test 2022-11-17 17:15:53 +02:00
Konstantinos Kaloutas f92e609af9 fix: e2e tests 2022-11-17 17:02:25 +02:00
sallto e882b7cabd
fix: Scheduled date picker always points to today, regardless of a previous date (#7329)
* fix: Scheduled date picker always points to today, regardless if a previous date was already set
fixes #6985

* fix: e2e-test flakyness for datepicker
2022-11-15 10:36:01 +08:00
Peng Xiao d35c6d2b06 fix: e2e fix 2022-11-14 22:39:53 +08:00
Phoenix Eliot a4e581b4b9 Add test for cmd-down deleting typed text 2022-11-14 17:37:24 +08:00
sallto 354d379874 fix: flaky e2e tests 2022-11-09 11:09:21 +08:00
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