Skip to content

Commit dd049df

Browse files
committed
Fix
1 parent e6d64f2 commit dd049df

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎tests/e2e/web/fixtures/deleteUserFixture.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { test as base } from '@playwright/test';
1+
import {test as base} from '@playwright/test';
22
import axios from 'axios';
3-
import { config } from '../SPEC_CONFIG';
3+
import {config} from '../SPEC_CONFIG';
44

55
const baseUrl = 'http://localhost:9099/identitytoolkit.googleapis.com/v1';
66

@@ -20,6 +20,10 @@ async function deleteUser(email: string, password: string) {
2020
{ idToken: login.data.idToken }
2121
);
2222
} catch (err: any) {
23+
// Skip deletion if user doesn't exist or other auth errors occur
24+
if (err.response?.status === 400 || err.response?.data?.error?.message?.includes('EMAIL_NOT_FOUND')) {
25+
return;
26+
}
2327
console.log(err);
2428
}
2529
}

0 commit comments

Comments
 (0)