Dan Stillman
14c6d26f20
Clarify comment for numDistinctFileAttachmentsForLabel()
test
2024-05-19 00:54:13 -04:00
Dan Stillman
47bf4de08a
Add test for numDistinctFileAttachmentsForLabel()
filter function
2024-05-19 00:52:36 -04:00
windingwind
bc47ee46c8
Fix item pane buttons after CEification
...
Fixes #4115
2024-05-15 06:45:10 -04:00
windingwind
9a23031c12
Rename ItemPaneHeader CE localName to item-pane-header
...
Closes #4114
2024-05-15 06:45:09 -04:00
windingwind
91c0c28b5d
Fix attachments & annotation box refresh bugs and add tests ( #4031 )
...
Fixes #3993
Fixes #3995
Closes #4082
2024-05-15 06:45:01 -04:00
Dan Stillman
07e8f0a01d
Try to make numDistinctFileAttachmentsForLabel()
test more reliable
2024-05-15 06:09:40 -04:00
Dan Stillman
0c8d3f0829
Improve counting of file attachments for Show File and Export PDFs
...
If a parent item and its primary attachment are selected, it should
still say "Show File" rather than "Show Files". This adds the
questionably named `Zotero.Items.numDistinctFileAttachmentsForLabel()`
to try to figure out if we're operating on 0, 1, or >1 items.
Follow-up to #4124
2024-05-15 05:50:47 -04:00
Dan Stillman
9783cc57c4
Add test for placement of creator rows in Info pane
2024-05-11 04:09:12 -04:00
Bogdan Abaev
be1c890051
After new item creation, focus title in itemBox ( #4113 )
...
When item is created manually, title field in itemBox
will be focused instead of the title in the itemPane as before.
If the itemBox is collapsed, it will be opened.
Added 'open' setter to item pane section for brevity
Fixes #4111
2024-05-11 04:09:05 -04:00
Abe Jellinek
59b1d75b98
Item pane header customization ( #3791 )
2024-05-10 08:23:26 -04:00
Dan Stillman
85f58cc97d
Fix Utilities.Internal.md5Async() on missing files and empty strings
...
https://forums.zotero.org/discussion/114208/zotero-7-beta-bug-report-consistent-error-when-syncing
2024-05-08 01:16:37 -04:00
Abe Jellinek
8f2bf50cec
Try to prevent ConcurrentCaller from failing CI ( #4097 )
2024-05-07 19:38:44 -04:00
Abe Jellinek
bd9048861c
HiddenBrowser: Test download blocking
...
9b7d3edbb3
2024-05-07 11:17:30 -04:00
Abe Jellinek
da1eb6fda9
Feeds: Prefer content to summary when available
2024-04-30 02:14:57 -04:00
Dan Stillman
81ed1f6ebb
Strip line and paragraph separators in filenames
...
And don't fail on existing filenames with these characters in
`Item::attachmentFilename`
https://forums.zotero.org/discussion/114025/pdf-files-renaming-casuing-syncing-issue
2024-04-28 07:51:25 -04:00
Abe Jellinek
a5393ca0e5
Merge: Keep external annotations on master, don't erase on other
...
PDFWorker only re-imports external annotations when the file changes on
disk. Keep annotation items corresponding to external annotations so
that they don't disappear after the merge (and then come back when the
file is edited).
Tweaks behavior introduced in 2aa34a6
.
https://forums.zotero.org/discussion/113943/zotero-7-beta-merging-pdf-files-leaves-ghost-external-annotations
2024-04-25 16:35:09 -04:00
Dan Stillman
704d90cd83
Use startHTTPServer()
in FeedReader test
2024-04-20 06:41:57 -04:00
Dan Stillman
9ffb430207
Return baseURL
from startHTTPServer()
test support function
...
Since it should almost always just be `http://localhost:${port}/ `
2024-04-20 06:41:57 -04:00
Abe Jellinek
8b13f717b4
SAXXMLReader: Handle non-UTF-8 encodings ( #3846 )
2024-04-20 06:41:51 -04:00
Abe Jellinek
f7dc68c7f4
Render RSS description as HTML ( #3956 )
2024-04-18 06:39:17 -04:00
abaevbog
2835d6fe83
tag selector focus edits, fix windowing breakage ( #3984 )
...
* tag selector focus edits
- no tabstop on the tag selector scrollable area
- change tag selector's role from default "grid" to "group".
"grid" is not quite correct semantically and leads to
voiceover suggesting irrelevant commands.
- move all keyboard handling logic to tagSelectorList.jsx.
Tabbing through tag selector is now handled in ZoteroPane,
so the only logic left there is arrow navigation
between tags, and there's no reason to not have it
together with the tags list.
- a workaround to deal with focused tags when windowing
kicks in. When a tag is focused, record its index.
Each time tags are re-rendered, if the saved index is not
among rendered tags, refocus it, otherwise, move focus
to the tags list.
2024-04-18 08:39:36 +03:00
Dan Stillman
4fe0ebc63b
Fix skipBundledFiles
not being passed to Zotero.reinit()
in tests
...
Making tests much slower
Regression from 2051f08b4c
2024-04-16 06:09:59 -04:00
abaevbog
c7c3784413
fix focus test breakage after zotero@6859614 ( #3977 )
...
- edits to zoteroPaneTest.js focus tests to expect the updated focus
sequence: selected tab -> tabs menu -> sync button -> collectionTree
toolbar -> collectionTree -> tags selector -> itemTree toolbar
- updated tags selector keydown handling to explicitly handle all
tab/shift-tab events using moveFocus. It is more readable and explicit
focus handling for all components is required for programmic tab/shiftTab
events dispatched in tests to actually move focus
Fixes : #3975
2024-04-14 02:16:16 -04:00
Dan Stillman
2e8073ab9d
Disable failing tabbing tests
...
To be fixed in #3975
2024-04-13 03:54:58 -04:00
Abe Jellinek
5263c79ea8
BlockingObserver: Re-enable in CI
2024-04-11 22:59:48 -04:00
Dan Stillman
b44757ad3c
CI: Re-enable retractions tests
...
See #3962
2024-04-11 06:09:12 -04:00
Dan Stillman
bef389e110
CI: Temporarily disable BlockingObserver test due to #3962
2024-04-11 05:58:51 -04:00
Dan Stillman
02a48c5a84
Add test for importing BibTeX from the clipboard
2024-04-10 07:13:47 -04:00
windingwind
49923780ca
fx115: replace text/unicode with text/plain in clipboard code ( #3945 )
2024-04-09 17:47:40 -04:00
Dan Stillman
38dc364f57
CI: Temporarily disable retractions tests due to failure in fx115
2024-04-08 03:11:23 -04:00
Dan Stillman
b3d07a5ddf
Remove initPDFToolsPath()
call
2024-04-06 16:16:04 -04:00
Dan Stillman
20d6cde85f
Remove obsolete initPDFToolsPath()
in tests
2024-04-06 04:38:33 -04:00
windingwind
b2ad17d604
CEify itemPane
2024-03-30 00:58:57 -04:00
Dan Stillman
5730bf690e
fx115: Don't try to spy on IOUtils function in test
...
Since it doesn't work
2024-03-30 00:58:55 -04:00
Dan Stillman
03d414f3bd
fz115: Update SingleFile tests to expect <html style>
...
Which I guess we get now instead of `<html>`?
2024-03-30 00:58:54 -04:00
Dan Stillman
920461cd9d
fx115: Update lots of OS.File/OS.Path uses
2024-03-30 00:58:54 -04:00
Dan Stillman
33db3c28fc
fx115: Restore test runner
2024-03-30 00:58:53 -04:00
Abe Jellinek
63f54d3184
FileHandlers: Fall back when _getSystemHandler() fails
...
Continue to Zotero.launchFile() as intended.
https://forums.zotero.org/discussion/113179/pdfs-will-not-open-in-system-reader-when-double-clicked
2024-03-27 13:23:54 -04:00
Abe Jellinek
65db66eb33
Add tests for shortTitle tag closing
2024-03-22 13:14:52 -04:00
Tom Najdek
16fa1ac893
Fix attachment icon remains after deleting attachment. Fix #3779
2024-03-08 15:22:15 +01:00
Abe Jellinek
ea63780600
FileHandlers tests: Wait for notifier instead of _setState() call
...
_setState() doesn't await setAttachmentLastPageIndex(), so the setting
sometimes won't be updated in the cache by the time we call
getAttachmentLastPageIndex() below. Notifier event should work every
time (and is a lot simpler).
2024-02-29 11:05:12 -08:00
Abe Jellinek
352f71e32e
Fix zotero://open/ and FileHandlers regressions ( #3761 )
2024-02-29 05:08:33 -05:00
Abe Jellinek
5e10e627c3
Replace calls to keepParents() with keepTopLevel() ( #3766 )
2024-02-28 19:13:20 -05:00
Tom Najdek
cffb5cdd4b
Fix best attachment type sometimes missing. Fix #3740
2024-02-26 13:14:27 +01:00
Abe Jellinek
a7d59a90d3
Unify attachment opening code and support EPUB/snapshot note links ( #3705 )
2024-02-23 06:38:11 -05:00
Tom Najdek
b1333d0e9d
More attachment type icons in the item tree ( #3645 )
2024-02-23 06:11:40 -05:00
Abe Jellinek
64b8c7b250
SingleFile actor: Skip cross-origin frames to fix error ( #3721 )
2024-02-21 06:43:45 -05:00
Abe Jellinek
1f599283df
Fix indexing files with text content types that Firefox won't display ( #3708 )
2024-02-19 05:11:16 -05:00
Tom Najdek
1b751d675b
Trim spaces from values in getFileBaseNameFromItem ( #3711 )
2024-02-19 04:43:19 -05:00
Tom Najdek
abe8def0f1
Trim leading/trailing space in filename format string. Fix #3701
2024-02-16 10:17:03 +01:00