Merge branch 'add-multiple-testing' into sprint-2

This commit is contained in:
Arthur Lu 2022-11-20 15:29:16 -08:00 committed by GitHub
commit 70c863c378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,20 +229,10 @@ describe("test App end to end", async () => {
console.log(dialog.message()); console.log(dialog.message());
await dialog.accept(); await dialog.accept();
}); });
}
// Get the delete button and click it
let delete_btn = await page.$("#delete-btn");
await delete_btn.click();
await page.waitForNavigation();
// Check that the card was correctly removed (there should be no remaining cards)
review_card = await page.$("#review-card");
assert.strictEqual(review_card, null);
}); });
}); });
});
after(async () => { after(async () => {
await page.close(); await page.close();
await browser.close(); await browser.close();