accept deleting trip
Some checks failed
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
philipp 2024-03-03 21:11:38 +01:00
parent 3927f18863
commit 6f8958937c

View File

@ -24,7 +24,7 @@ test('Cox can start and cancel trip', async ({ page }) => {
await page.getByRole('link', { name: 'Joe' }).click(); await page.getByRole('link', { name: 'Joe' }).click();
page.once('dialog', dialog => { page.once('dialog', dialog => {
console.log(`Dialog message: ${dialog.message()}`); console.log(`Dialog message: ${dialog.message()}`);
dialog.dismiss().catch(() => {}); dialog.accept().catch(() => {});
}); });
await page.getByRole('link', { name: 'Löschen' }).click(); await page.getByRole('link', { name: 'Löschen' }).click();
}); });