zotero/test/tests
abaevbog f1c7b7939c
Citation dialog: allow to switch between "Add Note" and "Add/Edit Citation" (#5586)
Allow one to switch between "Add/Edit Citation" and "Add Note" modes
in the citation dialog via segmented control in the bottom
left corner.

One cannot switch modes when editing an existing citation or
when inserting a citation in the note editor.

Use the same segmented control UI to switch between
list and library modes for clarity. Replace icons with
"List" and "Library" strings.

Collect some of the state variables into DIALOG_STATE object
for better organization.

Fixes: #5582

Also, remove earlier logic of not resizing window on refocus
on Linux if focus was lost <100ms ago. That workaround
no longer works, and now that we retain the window sizing
after search reruns, it is less of an issue.
Addresses: #5590
2025-12-18 23:18:35 -05:00
..
data Stop using restoreProcessorState() (#5516) 2025-08-26 00:44:14 -04: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 Fix attachment matching filename isn't correctly retitled (#5637) 2025-11-17 10:40:38 -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 dialog: allow to switch between "Add Note" and "Add/Edit Citation" (#5586) 2025-12-18 23:18:35 -05:00
citeprocRsBridgeTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
citeTest.js Reset Zotero.locale to 'en-US' after cite test 2022-08-11 03:57:20 -04: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 fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04: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 Fix should discard attachment pane preview after becoming invisible (#5630) 2025-11-17 10:39:32 -05:00
itemsTest.js Don't merge into a missing snapshot attachment (#5459) 2025-08-02 01:53:47 -04:00
itemTest.js set libraryID on annotations in tests (#5644) 2025-12-04 08:27:57 -05:00
itemTreeTest.js Fix itemTree quicksearch cleared when image pasted into a note (#5613) 2025-11-10 14:06:30 -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 fx140: Fix additional mendeleyImport.mjs imports 2025-07-30 22:30:58 -04: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
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 Local API: Match annotations (#4337) 2025-10-10 12:39:26 -04: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 Stop using restoreProcessorState() (#5516) 2025-08-26 00:44:14 -04:00
supportTest.js fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04: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 fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04: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 Remove Chai as Promised 2025-07-30 22:31:08 -04: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