zotero/test/tests
Dan Stillman 8992efc869 Fix potential sync error after Replace Online Library in group
https://forums.zotero.org/discussion/104431/syncing-problem

Replace Online Library can upload annotations created by others in a
group library, so if the upload resulted in a local write, "Cannot edit
item in library" was thrown, since annotations by others aren't
writable. This should've only been a problem if the uploaded data was
actually modified by the server, but we were also checking whether
objects were editable before checking if they had actually changed, so
it would happen for any upload of another person's annotation.

This fixes the order of checks when saving objects and makes an
edit-check exception for saving uploaded data for group annotations.
2023-04-21 06:52:08 -04:00
..
data Update connectorTypeSchemaData and test data for Dataset Number removal 2023-04-20 03:36:33 -04:00
.eslintrc Add separate .eslintrc for tests 2019-09-16 01:28:52 -04:00
advancedSearchTest.js Add utility functions for building drop-down library lists 2017-12-08 00:42:03 -05:00
annotationsTest.js Add collectionID option to EditorInstance.createNoteFromAnnotations() 2022-09-05 10:37:07 -04:00
attachmentsTest.js Fix response content type in Find Available PDF test 2022-11-16 18:35:31 -05:00
bibliographyTest.js XUL -> JS tree megacommit 2021-08-21 06:58:12 -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
citeprocRsBridgeTest.js Fix broken tests in 000599b 2022-02-21 14:06:20 +02:00
citeTest.js Reset Zotero.locale to 'en-US' after cite test 2022-08-10 01:01:48 -04:00
collectionsTest.js Sort multiple levels of items when generating API JSON 2021-03-02 17:36:05 -05:00
collectionTest.js Fix descendant collections not skipping delete log 2021-05-06 03:34:09 -04:00
collectionTreeRowTest.js Include proper test for b373291c02 for #2771 2022-08-19 02:47:24 -04:00
collectionTreeTest.js Add a test for feed update scroll issues. See b213b8f1 2023-04-17 12:29:41 +03:00
concurrentCallerTest.js Maybe reduce spurious errors in ConcurrentCaller test 2016-07-19 18:53:48 -04:00
creatorsTest.js Fix translation error when firstName is null for fieldMode 1 2017-02-27 23:34:16 -05:00
dataDirectoryTest.js Remove firefox-zotero IPC pipe and switching code (#2990) 2023-02-13 19:18:40 -05:00
dataObjectsTest.js Remove embedded-image attachment under annotation in test 2021-03-02 18:10:44 -05:00
dataObjectTest.js Disallow unowned group annotation edits, but allow deletions 2022-01-31 06:48:05 -05:00
dataObjectUtilitiesTest.js Don't repeatedly upload relations 2022-08-22 01:12:31 -04:00
dateTest.js Update utilities submodule and date-parsing tests 2022-06-22 04:41:33 -04:00
dbTest.js Fix DB timeout test after 078e3bb079 2022-02-21 16:58:57 -05:00
dictionariesTest.js Dictionary handling improvements 2021-06-26 17:09:23 -04:00
duplicatesTest.js Merge attachments and update notes (#2336) 2022-03-09 17:26:26 -05:00
feedItemsTest.js Fix some test breakages related to .note/.getNote() changes 2021-03-02 17:58:28 -05:00
feedItemTest.js Update utilities submodule and date-parsing tests 2022-06-22 04:41:33 -04:00
feedReaderTest.js Wire up new feed processor to Zotero's feed reader 2021-06-16 20:59:57 +01:00
feedsTest.js Feed import: Don't fail on OPML entry with no title or text 2022-05-20 00:33:25 -04:00
feedTest.js Don't reset isRead when feed item metadata changes (#2215) 2021-11-05 23:16:12 -04:00
fileInterfaceTest.js Citavi import: Tweak how page label is determined (#2494) 2022-03-30 09:34:07 -04:00
fileTest.js Automatically relink attachments from LABD (#2374) 2022-10-08 02:29:31 -04:00
fulltextTest.js Full-text indexing improvements 2020-03-09 01:19:52 -04:00
groupsTest.js Update toolbar icons on group editability change 2016-03-25 16:49:26 -04:00
groupTest.js Tweak test syntax that breaks with current version of chai-as-promised 2017-06-01 11:36:18 -04:00
httpTest.js Fix incorrect retries if multiple HTTP.request() calls get 500s 2023-01-11 02:32:39 -05:00
importExportTest.js Fix importing of standalone attachments without URLs 2022-08-14 05:06:27 -04:00
integrationTest.js Link Mendeley citations in documents to imported items. Closes #2622 2022-11-29 16:27:36 +02:00
intlTest.js Refactor l10n code. Remove use of react-intl. (#2975) 2023-01-17 15:59:19 -05:00
itemFieldsTest.js Fix Zotero.ItemFields.getBaseIDFromTypeAndField() 2015-05-27 05:01:48 -04:00
itemPaneTest.js Add test for 87455d 2022-08-08 11:48:33 -04:00
itemsTest.js Add collectionID option to EditorInstance.createNoteFromAnnotations() 2022-09-05 10:37:07 -04:00
itemTest.js Add '#' to default annotation color 2023-04-09 17:03:50 -04:00
itemTreeTest.js Empty Trash: Visually remove deleted items, refresh icon (#2606) 2022-08-18 21:14:34 -04:00
librariesTest.js Implement library.isGroup property, which was never properly implemented 2021-07-07 01:43:22 -04:00
libraryTest.js XUL -> JS tree megacommit 2021-08-21 06:58:12 -04:00
libraryTreeTest.js XUL -> JS tree megacommit 2021-08-21 06:58:12 -04:00
lookupTest.js Fix title mismatch for ISBN lookup tests 2021-01-25 03:58:04 -05:00
mendeleyImportTest.js Mendeley importer: Fix issue with empty tags (#3018) 2023-03-09 16:13:19 -05:00
noteeditorTest.js Fix note editor tests 2021-03-02 17:58:28 -05:00
notifierTest.js Fix notifier test after 078e3bb079 2022-02-21 19:22:29 -05:00
openurlTest.js Use best first creator for OpenURL author, not just first position 2016-07-11 06:30:55 -04:00
pdfReaderTest.js Increase wait time for pdf-reader iframe initialization in tests 2022-10-31 18:03:42 +02:00
preferences_advancedTest.js Fix test failure after 40fe85b274 2020-04-29 16:29:22 -04:00
preferences_searchTest.js Use the bundled PDF tools 2018-01-17 13:33:18 +02:00
preferences_syncTest.js Update some Sinon reset() calls 2017-06-01 15:39:42 -04:00
profileTest.js Point other profiles to new data dir after migration (+ code reorg) 2016-11-27 00:17:56 -05: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-21 11:51:18 +02:00
quickCopyTest.js Markdown note export (#2214) 2021-12-15 06:10:58 -05:00
recognizePDFTest.js Fix recognizePDF test after DOI translator change 2019-09-16 00:46:49 -04:00
relatedboxTest.js Update related box if related items are renamed or deleted 2021-09-14 01:50:58 -04:00
relationsTest.js Fix potential error dragging to library that hasn't been loaded 2020-09-14 23:49:22 -04:00
retractionsTest.js Fix some lint errors in Zotero.Retractions 2023-02-05 21:50:29 -05:00
schemaTest.js Better way of skipping migration of Place and Date from Extra 2023-03-21 06:29:50 -04:00
searchTest.js Prevent setting search .name to empty value 2023-04-11 23:48:07 -04:00
server_connectorTest.js Disable /connector/request tests from 86c56951df 2022-12-25 04:01:35 -05:00
serverTest.js Fix server not handling empty body in multi-part request 2020-10-12 15:06:11 -06:00
storageLocalTest.js Fix "attachmentSyncedModificationTime must be a number" sync error 2019-09-21 01:59:09 -04:00
storageRequestTest.js Avoid a warning from a storageRequest test from the item not existing 2017-05-23 02:12:00 -04:00
styleTest.js Improve test for event-title substitution 2022-08-10 01:34:57 -04:00
supportTest.js Massively speed up tests 2021-06-24 06:10:40 -04:00
syncAPIClientTest.js Send Zotero-Schema-Version header with API requests 2021-03-02 17:36:05 -05:00
syncedSettingsTest.js Fixes feed sync bugs after conflicts. (#1074) 2016-08-16 03:03:42 -04:00
syncEngineTest.js Fix potential sync error after Replace Online Library in group 2023-04-21 06:52:08 -04:00
syncEventListenersTest.js Trigger auto-sync after item deletion 2021-05-14 03:49:26 -04:00
syncFullTextEngineTest.js Update full-text sync tests after 2ecfff6681 2017-10-20 05:23:13 -04:00
syncLocalTest.js Fix missing creators not being removed in item.fromJSON() 2022-03-09 02:43:22 -05:00
syncRunnerTest.js Fix additional sync test after format=json removal 2021-03-03 08:53:28 -05:00
tagsboxTest.js Reactify item tags box 2019-11-08 06:41:06 -05:00
tagSelectorTest.js Match parent attachments for annotation tags 2022-08-16 22:56:39 -04:00
tagsTest.js Remove all colored tags on selected items if 0 is pressed 2019-10-26 16:45:04 -04:00
translateTest.js Adjust tests to not use the dotsToHyphens proxy option 2022-11-10 12:46:40 +02:00
translatorsTest.js Remove accidental .only() in test from fdcd4e51c5 2021-07-12 15:25:17 -04:00
uriTest.js Add Zotero.URI.getURIItemLibraryKeyFromDB() 2017-05-19 12:11:21 -04:00
utilities_internalTest.js Better way of skipping migration of Place and Date from Extra 2023-03-21 06:29:50 -04:00
utilitiesSubmoduleTest.js Update utilities, move tests, add to CI (#2584) 2022-04-30 04:55:11 -04:00
webdavTest.js Fix error deleting some orphaned or invalid WebDAV files 2021-12-27 14:53:28 -05:00
zfsTest.js Improve embedded note image loading and deletion: 2021-07-28 13:49:04 +03:00
zoteroPaneTest.js Automatically relink attachments from LABD (#2374) 2022-10-08 02:29:31 -04:00
zoteroTest.js Include "Zotero/[version]" in file sync requests 2021-12-27 15:54:12 -05:00