fix delete test issue with alert handling

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2022-11-19 12:16:03 -08:00
parent 20e9842aea
commit 8338156cb8

View File

@ -364,6 +364,11 @@ describe("test App end to end", async () => {
await review_card.click();
await page.waitForNavigation();
page.on('dialog', async dialog => {
console.log(dialog.message());
await dialog.accept();
});
// Get the delete button and click it
let delete_btn = await page.$("#delete-btn");
await delete_btn.click();