Refine warning messages and test feedback
This commit refines the warning text in the 'deleteAccountDescription' in locales and associated Supabase service role warning. Additionally, the E2E test for account deletion has been updated to include a response check for a redirection status, improving the reliability of the test outcome.
This commit is contained in:
@@ -56,6 +56,12 @@ test.describe('Account Deletion', () => {
|
||||
await account.setup();
|
||||
await account.deleteAccount();
|
||||
|
||||
await page.waitForURL('http://localhost:3000');
|
||||
const response = await page.waitForResponse((resp) => {
|
||||
return resp.url().includes('home/settings') &&
|
||||
resp.request().method() === 'POST';
|
||||
});
|
||||
|
||||
// The server should respond with a 303 redirect
|
||||
expect(response.status()).toBe(303);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user