zotero/test
Dan Stillman db4d7d5838 Fix recognizeDocument test failures
Wait for all progress-queue rows to be done processing before moving on
to the next test. Without this, preview rendering or other operations
can cause test failures by delaying the `ZoteroPane.selectItems()` call
for the new parent item in `_processItem()` until the middle of a
following test (due to the await for file renaming [1]). If it's delayed
until after the next attachment has been created, the previous parent
item will be selected after the new attachment and `recognizeSelected()`
in the test won't work. This is most pronounced with the reader, but it
was apparently happening previously due to something else, hence the
explicit item selection (now removed) in one test.

[1] 21e50add60/chrome/content/zotero/xpcom/recognizeDocument.js (L289-L301)
2024-01-24 23:32:22 -05:00
..
components Switch back to @mozilla.org/browser/clh;1 and fix tests 2023-05-24 08:21:16 -04:00
content Fix Item pane "should refresh on file rename" test 2024-01-24 23:32:20 -05:00
resource fx-compat: Update httpd.js from mozilla-central 1739f130 2022-06-17 20:24:43 -04:00
tests Fix recognizeDocument test failures 2024-01-24 23:32:22 -05:00
chrome.manifest Switch back to @mozilla.org/browser/clh;1 and fix tests 2023-05-24 08:21:16 -04:00
runtests.sh Fix --openssl-legacy-provider issue when tests need to build reader 2023-08-09 07:27:22 -04:00