Tests: Remove some unnecessary waitForItemsLoad()
calls
This commit is contained in:
parent
621435be68
commit
a9c5c1bfa5
1 changed files with 0 additions and 7 deletions
|
@ -1443,7 +1443,6 @@ describe("Connector Server", function () {
|
||||||
describe("/connector/savePage", function() {
|
describe("/connector/savePage", function() {
|
||||||
before(async function () {
|
before(async function () {
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return 500 if no translator available for page", function* () {
|
it("should return 500 if no translator available for page", function* () {
|
||||||
|
@ -1690,7 +1689,6 @@ describe("Connector Server", function () {
|
||||||
let addItemsSpy = sinon.spy(Zotero.Server.Connector.SaveSession.prototype, 'addItems');
|
let addItemsSpy = sinon.spy(Zotero.Server.Connector.SaveSession.prototype, 'addItems');
|
||||||
var group = await createGroup({ editable: true, filesEditable: false });
|
var group = await createGroup({ editable: true, filesEditable: false });
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
|
|
||||||
var sessionID = Zotero.Utilities.randomString();
|
var sessionID = Zotero.Utilities.randomString();
|
||||||
var body = {
|
var body = {
|
||||||
|
@ -1806,7 +1804,6 @@ describe("Connector Server", function () {
|
||||||
it("should move item saved via /saveSnapshot to another library", async function () {
|
it("should move item saved via /saveSnapshot to another library", async function () {
|
||||||
var group = await createGroup({ editable: true, filesEditable: false });
|
var group = await createGroup({ editable: true, filesEditable: false });
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
var sessionID = Zotero.Utilities.randomString();
|
var sessionID = Zotero.Utilities.randomString();
|
||||||
|
|
||||||
// saveSnapshot saves parent and child before returning
|
// saveSnapshot saves parent and child before returning
|
||||||
|
@ -1889,7 +1886,6 @@ describe("Connector Server", function () {
|
||||||
it("should save item saved via /saveSnapshot and /saveSingleFile to another library", async function () {
|
it("should save item saved via /saveSnapshot and /saveSingleFile to another library", async function () {
|
||||||
let group = await createGroup({ editable: true, filesEditable: false });
|
let group = await createGroup({ editable: true, filesEditable: false });
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
let sessionID = Zotero.Utilities.randomString();
|
let sessionID = Zotero.Utilities.randomString();
|
||||||
|
|
||||||
// Wait for /saveSnapshot and /saveSingleFile to items
|
// Wait for /saveSnapshot and /saveSingleFile to items
|
||||||
|
@ -2017,7 +2013,6 @@ describe("Connector Server", function () {
|
||||||
it("should resave item saved via /saveSnapshot and /saveSingleFile when moved to filesEditable library", async function () {
|
it("should resave item saved via /saveSnapshot and /saveSingleFile when moved to filesEditable library", async function () {
|
||||||
let group = await createGroup({ editable: true, filesEditable: false });
|
let group = await createGroup({ editable: true, filesEditable: false });
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
let sessionID = Zotero.Utilities.randomString();
|
let sessionID = Zotero.Utilities.randomString();
|
||||||
|
|
||||||
// Wait for /saveSnapshot to save parent item
|
// Wait for /saveSnapshot to save parent item
|
||||||
|
@ -2139,7 +2134,6 @@ describe("Connector Server", function () {
|
||||||
it("should save item saved via /saveItems and /saveSingleFile to another library", async function () {
|
it("should save item saved via /saveItems and /saveSingleFile to another library", async function () {
|
||||||
let group = await createGroup({ editable: true, filesEditable: false });
|
let group = await createGroup({ editable: true, filesEditable: false });
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
let sessionID = Zotero.Utilities.randomString();
|
let sessionID = Zotero.Utilities.randomString();
|
||||||
|
|
||||||
// Wait for /saveItems and /saveSingleFile to items
|
// Wait for /saveItems and /saveSingleFile to items
|
||||||
|
@ -2286,7 +2280,6 @@ describe("Connector Server", function () {
|
||||||
it("should save item saved via /saveItems and /saveSingleFile when moved to filesEditable library", async function () {
|
it("should save item saved via /saveItems and /saveSingleFile when moved to filesEditable library", async function () {
|
||||||
let group = await createGroup({ editable: true, filesEditable: false });
|
let group = await createGroup({ editable: true, filesEditable: false });
|
||||||
await selectLibrary(win);
|
await selectLibrary(win);
|
||||||
await waitForItemsLoad(win);
|
|
||||||
let sessionID = Zotero.Utilities.randomString();
|
let sessionID = Zotero.Utilities.randomString();
|
||||||
|
|
||||||
// Wait for /saveItems to save parent item
|
// Wait for /saveItems to save parent item
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue