diff --git a/test/content/support.js b/test/content/support.js index 2bb825aecb..c946444ae6 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -136,6 +136,10 @@ function waitForDialog(onOpen, button='accept', url) { else if (button != 'cancel') { let deferred = Zotero.Promise.defer(); function acceptWhenEnabled() { + Zotero.debug('====='); + Zotero.debug(button); + Zotero.debug(dialog.document.documentElement.getButton(button)); + // Handle delayed buttons if (dialog.document.documentElement.getButton(button).disabled) { dialog.setTimeout(function () { diff --git a/test/tests/dataDirectoryTest.js b/test/tests/dataDirectoryTest.js index cb10023c5f..f62cedf0de 100644 --- a/test/tests/dataDirectoryTest.js +++ b/test/tests/dataDirectoryTest.js @@ -185,6 +185,7 @@ describe("Zotero.DataDirectory", function () { var promise2; // Click "Try Again" the first time, and then "Show Directories and Quit Zotero" var promise = waitForDialog(function (dialog) { + Zotero.debug("In first dialog"); promise2 = waitForDialog(null, 'extra1'); // Make sure we're displaying the right message for this mode (automatic or manual)