diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9725655f6..cd7131666 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -233,6 +233,8 @@ jobs: NUXT_PUBLIC_API_BASE: http://localhost:7000 NUXT_PUBLIC_HOMEPAGE_HERO_IMAGES: "hero_15.png" NUXT_SITE_URL: http://localhost:3000 + NUXT_PUBLIC_TABULAR_API_URL: https://tabular-api.preprod.data.gouv.fr + NUXT_PUBLIC_CHARTS_API_BASE: https://demo.data.gouv.fr run: | # Start cdata server in background using pre-built artifacts PORT=3000 node .output/server/index.mjs > cdata.log 2>&1 & diff --git a/E2E-TESTING.md b/E2E-TESTING.md index b6cb455eb..47ca5dea7 100644 --- a/E2E-TESTING.md +++ b/E2E-TESTING.md @@ -6,13 +6,13 @@ Ce document explique comment les tests E2E sont configurés pour tester l'intég ### GitHub Actions -Voir **e2e.yml**. +Voir **.github/workflows/ci.yml**. ### Architecture des tests Les tests E2E simulent un environnement complet avec : - **Base de données** : MongoDB (via Docker) -- **Cache/Queue** : Redis (via Docker) +- **Cache/Queue** : Redis (via Docker) - **Backend API** : udata (Flask) qui fournit l'API - **Frontend** : cdata (Nuxt.js) qui consomme l'API @@ -62,3 +62,7 @@ pnpm run test:e2e - `pnpm run test:e2e` : Lance les tests E2E en mode headless - `pnpm run test:e2e:ui` : Lance les tests avec l'interface Playwright - `pnpm run test:e2e:headed` : Lance les tests en mode visible + +## Paramètres fréquemment utilisés +- `--project firefox`: Lance uniquement les tests pour firefox (existe aussi avec `--project chromium`) +- `--only-changed`: Lance uniquement les tests modifiés depuis le dernier commit, et les tests qui importent un fichier modifié diff --git a/app.vue b/app.vue index 3aca41671..ebe44f841 100644 --- a/app.vue +++ b/app.vue @@ -36,6 +36,7 @@ app.vueApp.use(datagouv, { baseUrl: siteConfig.url, trustedDomains: runtimeConfig.public.trustedDomains, apiBase: runtimeConfig.public.apiBase, + chartsApiBase: runtimeConfig.public.chartsApiBase, devApiKey: runtimeConfig.public.devApiKey, datasetQualityGuideUrl: runtimeConfig.public.datasetQualityGuideUrl, maxJsonPreviewCharSize: runtimeConfig.public.maxJsonPreviewCharSize, diff --git a/components/Charts/ChartConfigurator.vue b/components/Charts/ChartConfigurator.vue new file mode 100644 index 000000000..4c05f73df --- /dev/null +++ b/components/Charts/ChartConfigurator.vue @@ -0,0 +1,619 @@ +