diff --git a/cypress/e2e/hedgedoc-migrator.cy.js b/cypress/e2e/hedgedoc-migrator.cy.js index faa1003..6c671ff 100644 --- a/cypress/e2e/hedgedoc-migrator.cy.js +++ b/cypress/e2e/hedgedoc-migrator.cy.js @@ -40,14 +40,14 @@ describe('Migrate document', () => { it('passes', async () => { // Read list of pads to migrate - cy.fixture('pads').then( pads => { + cy.fixture('pads').then(async(pads) => { if(pads.length === 0) { console.log("Didn't find any pad urls to migrate"); } for (const pad of pads) { - migrateDocument(pad.oldUrl, pad.newUrl); + await migrateDocument(pad.oldUrl, pad.newUrl); } })