zotero/test/tests
Dan Stillman 089701eca8 Fix WebDAV authentication handling in fx140
Firefox no longer seems to send a previously used Authorization header
with subsequent requests. This results in extra requests, since every
WebDAV request triggers a 401, and also results in errors, because a PUT
is sent without Authorization, causing some WebDAV servers to
immediately send a 401 and close the connection, which the HTTP layer
interprets as a connection failure (status 0). (It's also not good to
try to send a large file just to get a 401.)

There might be some way to share context between requests, but instead,
just get the used Authorization header and include that explicitly in
future requests.

To test this properly, we have to switch to using httpd.js for all
WebDAV requests, since the mocked XHR doesn't trigger the 401 retry.

https://forums.zotero.org/discussion/129194/webdav-uploads-fail-on-zotero-8-put-sent-without-authorization-server-closes-connection
2026-02-01 16:42:55 -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 Set auto attachment title when not renaming (#5748) 2026-01-27 11:44:50 -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 CI: Fix disabling of certain tests 2026-01-27 13:34:25 -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: Fix disabling of certain tests 2026-01-27 13:34:25 -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 Set auto attachment title when not renaming (#5748) 2026-01-27 11:44:50 -05: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 quicksearch not finding annotations of standalone attachments (#5756) 2026-01-28 13:30:36 -05: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 error resetting group library with unsynced embedded images 2026-01-29 13:22:14 -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 Fix WebDAV authentication handling in fx140 2026-02-01 16:42:55 -05:00
zfsTest.js Remove Chai as Promised 2025-07-30 22:31:08 -04:00
zoteroPaneTest.js Remove DOI when creating bookSection from book 2026-01-27 16:20:14 -05:00
zoteroTest.js Keep Zotero in the User-Agent, add Firefox (#5500) 2025-08-27 00:40:08 -04:00