feat: Provisionner automatiquement un nouvel établissement
Lorsqu'un super-admin crée un établissement via l'interface, le système doit automatiquement créer la base tenant, exécuter les migrations, créer le premier utilisateur admin et envoyer l'invitation — le tout de manière asynchrone pour ne pas bloquer la réponse HTTP. Ce mécanisme rend chaque établissement opérationnel dès sa création sans intervention manuelle sur l'infrastructure.
This commit is contained in:
@@ -202,7 +202,7 @@ test.describe('Dashboard', () => {
|
||||
await expect(page.getByText(/vos classes apparaîtront ici/i)).toBeVisible();
|
||||
await expect(page.getByText(/évaluations en attente de notation/i)).toBeVisible();
|
||||
await expect(page.getByText(/les appels à effectuer/i)).toBeVisible();
|
||||
await expect(page.getByText(/les statistiques de vos classes/i)).toBeVisible();
|
||||
await expect(page.getByText(/les statistiques apparaîtront après la publication de notes/i)).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -497,10 +497,8 @@ test.describe('Dashboard', () => {
|
||||
await page.goto(`${ALPHA_URL}/login`);
|
||||
await page.locator('#email').fill(ADMIN_EMAIL);
|
||||
await page.locator('#password').fill(ADMIN_PASSWORD);
|
||||
await Promise.all([
|
||||
page.waitForURL(/\/dashboard/, { timeout: 60000 }),
|
||||
page.getByRole('button', { name: /se connecter/i }).click()
|
||||
]);
|
||||
await page.getByRole('button', { name: /se connecter/i }).click();
|
||||
await page.waitForURL(/\/dashboard/, { timeout: 60000 });
|
||||
}
|
||||
|
||||
test('clicking "Gerer les utilisateurs" navigates to users page', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user