Fix non working non working migration script with cypress async magic
This commit is contained in:
parent
2b30b277e7
commit
d10cf37bfd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue