======================================
đ„ VidĂ©os Tests E2E (Documentation Vivante)
======================================
.. raw:: html
Introduction
============
Cette page présente les **vidéos des tests E2E** enregistrées manuellement.
đ Statistiques
---------------
- **Nombre de vidéos** : 8
- **Format** : WebM 1280x720
- **Emplacement** : ``docs/_static/videos/``
Vidéos disponibles
==================
Admindashboard.crud Organisation With Search
--------------------------------------------
.. raw:: html
Admindashboard.crud Organisation With Search
Fichier: AdminDashBoard.CRUD organisation with search.webm
Admindashboard.crud Building
----------------------------
.. raw:: html
Admindashboard.crud Building
Fichier: AdminDashBoard.CRUD-building.webm
Admindashboard.crud Organisation User
-------------------------------------
.. raw:: html
Admindashboard.crud Organisation User
Fichier: AdminDashBoard.CRUD-organisation-user.webm
Admindashboard.crud Organisation
--------------------------------
.. raw:: html
Admindashboard.crud Organisation
Fichier: AdminDashBoard.CRUD-organisation.webm
Admindashboard.journey
----------------------
.. raw:: html
Admindashboard.journey
Fichier: AdminDashBoard.Journey.webm
Admindashboard.should Search Organizations
------------------------------------------
.. raw:: html
Admindashboard.should Search Organizations
Fichier: AdminDashBoard.should-search-organizations.webm
Admindashboard.toggle Organization Status
-----------------------------------------
.. raw:: html
Admindashboard.toggle Organization Status
Fichier: AdminDashBoard.toggle-organization-status.webm
Gdpr Complete User Export Data And Erase Account
------------------------------------------------
.. raw:: html
Gdpr Complete User Export Data And Erase Account
Fichier: Gdpr-Complete-User-export-data-and-erase-account.webm
Comment enregistrer une nouvelle vidéo ?
=========================================
MĂ©thode 1 : Playwright Codegen (â RecommandĂ©)
----------------------------------------------
**Enregistrement interactif** - Playwright génÚre le code automatiquement !
.. code-block:: bash
cd frontend
# Lancer l'enregistrement interactif (avec Traefik)
npm run codegen
# OU: npx playwright codegen http://localhost
# Playwright ouvre un navigateur et enregistre vos actions :
# â Naviguez, cliquez, remplissez des formulaires
# â Le code du test est gĂ©nĂ©rĂ© en temps rĂ©el
# â Copiez-le dans tests/e2e/mon-test.spec.ts
# Lancez le test pour générer la vidéo
npm run test:e2e -- mon-test.spec.ts
# Synchroniser les vidéos dans la doc
cd ..
make docs-sync-videos
make docs-sphinx
MĂ©thode 2 : Ăcrire le test manuellement
----------------------------------------
Créez ``frontend/tests/e2e/mon-test.spec.ts`` :
.. code-block:: typescript
import { test, expect } from "@playwright/test";
test("Mon scénario de test", async ({ page }) => {
await page.goto("/login");
await page.fill('input[type="email"]', "test@test.com");
await page.fill('input[type="password"]', "test123");
await page.click('button[type="submit"]');
await expect(page.locator("text=Dashboard")).toBeVisible();
});
Puis :
.. code-block:: bash
cd frontend && npm run test:e2e
cd .. && make docs-sync-videos && make docs-sphinx
----
.. raw:: html
đ€ Page gĂ©nĂ©rĂ©e automatiquement par generate-video-rst.py
KoproGo ASBL - Documentation vivante