mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 09:29:10 +00:00
fix delete test issue with alert handling
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
20e9842aea
commit
8338156cb8
@ -364,6 +364,11 @@ describe("test App end to end", async () => {
|
|||||||
await review_card.click();
|
await review_card.click();
|
||||||
await page.waitForNavigation();
|
await page.waitForNavigation();
|
||||||
|
|
||||||
|
page.on('dialog', async dialog => {
|
||||||
|
console.log(dialog.message());
|
||||||
|
await dialog.accept();
|
||||||
|
});
|
||||||
|
|
||||||
// Get the delete button and click it
|
// Get the delete button and click it
|
||||||
let delete_btn = await page.$("#delete-btn");
|
let delete_btn = await page.$("#delete-btn");
|
||||||
await delete_btn.click();
|
await delete_btn.click();
|
||||||
|
Loading…
Reference in New Issue
Block a user