From d10cf37bfd61b7b84013ab8e54ca52b74498339e Mon Sep 17 00:00:00 2001 From: Patrick Schwarz Date: Wed, 14 Sep 2022 00:14:31 +0200 Subject: [PATCH] Fix non working non working migration script with cypress async magic --- cypress/e2e/hedgedoc-migrator.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } })