mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-19 15:27:16 -05:00
Fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user