mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-31 11:56:50 +00:00 
			
		
		
		
	fix delete test issue with alert handling
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
		| @@ -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(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user