Add a confirmation dialog before deleting a guest #284

Merged
bustikiller merged 2 commits from confirmation-dialog-remove-guest into main 2025-06-15 11:28:14 +00:00
Showing only changes of commit cb89310425 - Show all commits

View File

@ -70,6 +70,7 @@ test('should allow CRUD on guests', async ({ page }) => {
await expect(page.getByText('There are 3 elements in the list')).toBeVisible();
// Delete John Fire
page.on('dialog', dialog => dialog.accept());
await page.getByRole('row').nth(1).locator('svg').nth(0).click(); // Click delete icon
await expect(page.getByText('There are 2 elements in the list')).toBeVisible();
});