zotero/test/tests
abaevbog 1f9d9d2967
citation dlg: updates to locator shortcuts (#5529)
- after a new bubble is added to the citation, it is recorded
as a just-added bubble. The next locator typed without a search query
will go to that item instead of going to the item before where the locator was typed.
Same logic applies when multiple bubbles are added at once.
- the record of just-added bubbles is cleared on focusout
or keypress of an arrow key. That way, it's discarded if the user
is almost certainly not intending to immediately type a locator.
- added a special case to recognize a numeric value as a page locator
if it is typed when just-added bubble is recorded. That special locator
will be added to the just-added bubble as one is typing without
pressing Enter after debounce. Enter will immediately add the locator
without waiting for debounce.
- if a just-added bubble is recorded, cmd-z will clear
whatever numeric locator may have been typed and place
it back into the input, in case one meant to type an
actual search query

- added a special case to recognize ":<number>" as a page locator
in the same circumstances that "page <number>" is currently recognized
- do not use year extraction (SearchHandler._cleanYear)
when parsing input. It strips the first number from
a range of numbers and conflicts with the new locator
logic.
- ensure a bubble with a very long locator does not overflow
2026-01-26 20:12:44 -05:00
..
data Update sample data for tests, again 2026-01-13 13:14:00 -05:00
.eslintrc Add separate .eslintrc for tests 2019-09-16 01:28:52 -04:00
advancedSearchTest.js Fix connector save timing out with Advanced Search 2025-11-03 09:24:35 +02:00
annotationsTest.js Set automatic titles in more or less all cases (#4369) 2024-07-14 23:37:24 -04:00
attachmentsTest.js File renaming: Allow local time conversion for accessDate (#5707) 2026-01-20 11:00:52 -05:00
bibliographyTest.js Fix remaped styles not working in Document Preferences dialog 2025-12-16 16:33:45 +02:00
browserDownloadTest.js Use local HTTP server for Zotero.BrowserDownload test 2024-06-15 00:40:03 -04:00
cachedTypesTest.js Fix primary item types not appearing in More menu when not in MRU list 2021-03-29 01:41:37 -04:00
citationDialogTest.js citation dlg: updates to locator shortcuts (#5529) 2026-01-26 20:12:44 -05:00
citeprocRsBridgeTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
citeTest.js Fix citing in Serbian locale 2026-01-26 15:14:19 -05:00
collectionsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
collectionTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
collectionTreeRowTest.js Include proper test for b373291c02 for #2771 2022-08-19 12:05:30 -04:00
collectionTreeTest.js Fix no onActivate handling on double click of collectionTree rows (#5656) 2025-12-15 23:11:53 -05:00
concurrentCallerTest.js Remove Bluebird methods in concurrentCallerTest.js 2025-07-30 22:30:57 -04:00
creatorsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
dataDirectoryTest.js Remove Chai as Promised 2025-07-30 22:31:08 -04:00
dataObjectsTest.js Properly display annotations as rows of relatedBox (#5585) 2025-12-12 14:55:27 -05:00
dataObjectTest.js Restore timeout in dataObjectTest.js, fix test 2025-07-30 22:30:57 -04:00
dataObjectUtilitiesTest.js Don't upload tags on item conflict if only tag order has changed 2025-12-24 22:00:07 -05:00
dateTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
dbTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
debugTest.js Test debug output logging again 2023-05-24 20:59:29 +03:00
dictionariesTest.js fx-compat: Fix dictionaries tests 2022-06-19 04:16:53 -04:00
duplicatesTest.js avoid relation to self after merging related items (#5488) 2025-08-15 01:40:01 -04:00
feedItemsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
feedItemTest.js Remove remaining chai-as-promised method calls 2025-07-30 22:31:08 -04:00
feedReaderTest.js Don't try to reject last feed item when FeedReader terminates 2025-07-30 22:31:08 -04:00
feedsTest.js Use alternate method to test feed check delay 2025-07-30 22:30:56 -04:00
feedTest.js Fix Zotero.Feed tests after chai-as-promised removal 2025-07-30 22:31:08 -04:00
fileHandlersTest.js FileHandlers: Infer PDF pageIndex from annotation key 2025-07-30 11:37:52 -04:00
fileInterfaceTest.js Fix test for Citavi annotation import 2025-10-02 17:17:37 +01:00
fileTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
folderImportTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
fulltextTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
groupsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
groupTest.js Remove remaining chai-as-promised method calls 2025-07-30 22:31:08 -04:00
HiddenBrowserTest.js fx140: More progress toward startup 2025-07-30 22:18:36 -04:00
httpTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
hyphenationTest.js close more leftover windows in tests (#5460) 2025-08-02 01:40:21 -04:00
importExportTest.js fx-compat: Fix XMLSerializer calls 2023-05-22 01:34:41 -04:00
integrationTest.js Remove remaining chai-as-promised method calls 2025-07-30 22:31:08 -04:00
intlTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
itemFieldsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
itemPaneTest.js CI: Skip attachment pane preview test for now 2026-01-26 16:50:50 -05:00
itemsTest.js Don't merge into a missing snapshot attachment (#5459) 2025-08-02 01:53:47 -04:00
itemTest.js Fix test error after adding type to document 2025-12-25 22:13:34 -05:00
itemTreeTest.js showAttachmentFilenames: Fall back on invalid attachment path (#5717) 2026-01-22 14:55:23 -05:00
librariesTest.js Remove remaining chai-as-promised method calls 2025-07-30 22:31:08 -04:00
libraryTest.js Remove remaining chai-as-promised method calls 2025-07-30 22:31:08 -04:00
libraryTreeTest.js Tests: Don't auto-select collections and searches after creation 2024-06-24 02:45:20 -04:00
lookupTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
mendeleyImportTest.js Revert treating "arXiv ID" as a field in Mendeley import 2025-12-26 15:55:45 -05:00
mimeTest.js Add EPUB format to Zotero.MIME 2023-08-07 16:07:52 -04:00
noteeditorTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
noteTabTest.js Fix note tab reopen logic (#5706) 2026-01-20 10:56:04 -05:00
notifierTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
openurlTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
pluginAPITest.js Notes context pane: Create context menus locally (#5508) 2025-08-27 00:41:21 -04:00
preferences_advancedTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
preferences_syncTest.js close more leftover windows in tests (#5460) 2025-08-02 01:40:21 -04:00
profileTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
protocolHandlerTest.js Close window after protocol handler tests 2019-08-03 02:48:01 -04:00
proxyTest.js Import URL from XPCOM code instead of relying on window for Proxy code 2022-11-22 15:58:49 +02:00
quickCopyTest.js Stop using restoreProcessorState() (#5516) 2025-08-26 00:44:14 -04:00
readerTest.js close more leftover windows in tests (#5460) 2025-08-02 01:40:21 -04:00
recognizeDocumentTest.js Add continuous-renaming functionality for attachment files (#3860) 2025-09-11 04:54:03 -04:00
relatedboxTest.js filter out trashed items in relatedBox (#5482) 2025-08-13 23:56:40 -04:00
relationsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
RemoteTranslateTest.js fx140: ESMify RemoteTranslate and uses 2025-07-30 22:30:30 -04:00
retractionsTest.js CI: Re-enable retractions tests 2024-04-11 06:09:12 -04:00
schemaTest.js Remove Chai as Promised 2025-07-30 22:31:08 -04:00
searchTest.js Fix search test descriptions, remove outdated tests 2025-10-10 12:39:26 -04:00
server_connectorIntegrationTest.js Replace uses of Zotero.Promise.defer() as a constructor 2025-07-30 22:30:33 -04:00
server_connectorTest.js Close ProgressQueueDialog after connector server tests (#5446) 2025-07-31 21:54:15 -04:00
server_integrationTest.js Make server.js use mozilla httpd and support application/octet-stream (#5148) 2025-04-22 09:47:58 -04:00
server_localAPITest.js Fix citations accumulating due to CSL.Engine caching (#5742) 2026-01-26 16:12:36 -05:00
serverTest.js fx140: Fix NetUtil import in server tests 2025-07-30 22:31:03 -04:00
storageLocalTest.js File sync: Rename single HTML file within multi-file ZIP to known name 2025-08-28 03:06:52 -04:00
storageRequestTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
styleTest.js Fix citations accumulating due to CSL.Engine caching (#5742) 2026-01-26 16:12:36 -05:00
supportTest.js Show more granular error for generateItemJSONData() test 2025-12-26 23:36:09 -05:00
syncAPIClientTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
syncedSettingsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
syncEngineTest.js Revert "Fix relations to erased items reappearing after sync (#5486)" 2025-08-15 02:09:18 -04:00
syncEventListenersTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
syncFullTextEngineTest.js Remove Chai as Promised 2025-07-30 22:31:08 -04:00
syncLocalTest.js Fix potential sync error if unloaded editable library becomes read-only 2025-11-11 13:43:01 -05:00
syncRunnerTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
tabsTest.js Render citeproc.js markup in tab titles (#4602) 2024-08-26 07:57:17 -04:00
tagsboxTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
tagSelectorTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
tagsTest.js Extend emoji matching to include symbols 2026-01-16 13:31:02 +01:00
translateTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
translatorsTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
uriTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
utilities_internalTest.js renderItemTitle(): Only split on known tags 2026-01-20 12:58:44 -05:00
utilitiesSubmoduleTest.js Update utilities, move tests, add to CI (#2584) 2022-04-30 04:55:11 -04:00
webdavTest.js Remove Chai as Promised 2025-07-30 22:31:08 -04:00
zfsTest.js Remove Chai as Promised 2025-07-30 22:31:08 -04:00
zoteroPaneTest.js Use extension-less filenames when adding multiple attachments at once (#4649) 2025-10-08 14:30:21 -04:00
zoteroTest.js Keep Zotero in the User-Agent, add Firefox (#5500) 2025-08-27 00:40:08 -04:00