This commit is contained in:
MartinBraquet
2026-02-17 15:15:21 +01:00
parent e6d64f2668
commit dd049dfb88

View File

@@ -1,6 +1,6 @@
import { test as base } from '@playwright/test';
import {test as base} from '@playwright/test';
import axios from 'axios';
import { config } from '../SPEC_CONFIG';
import {config} from '../SPEC_CONFIG';
const baseUrl = 'http://localhost:9099/identitytoolkit.googleapis.com/v1';
@@ -20,6 +20,10 @@ async function deleteUser(email: string, password: string) {
{ idToken: login.data.idToken }
);
} catch (err: any) {
// Skip deletion if user doesn't exist or other auth errors occur
if (err.response?.status === 400 || err.response?.data?.error?.message?.includes('EMAIL_NOT_FOUND')) {
return;
}
console.log(err);
}
}