feat: add ability to force email verification (#1837)

This commit is contained in:
Elias Schneider
2026-10-13 22:04:33 +02:00
committed by GitHub
parent eb8ea6bed2
commit 0ffeb170cf
81 changed files with 2310 additions and 263 deletions
+22
View File
@@ -0,0 +1,22 @@
import { expect, type APIRequestContext } from '@playwright/test';
// Overrides application configuration values through the API, keeping every other value unchanged
// The request context must be authenticated as an admin
export async function setAppConfigValues(
request: APIRequestContext,
values: Record<string, string>
) {
const configResponse = await request.get('/api/application-configuration/all');
expect(configResponse.ok()).toBe(true);
const config = Object.fromEntries(
((await configResponse.json()) as Array<{ key: string; value: string }>).map(
({ key, value }) => [key, value]
)
);
const updateResponse = await request.put('/api/application-configuration', {
data: { ...config, ...values }
});
expect(updateResponse.ok()).toBe(true);
}