Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
if: always()
with:
name: playwright-screenshots
path: tests/*-snapshots/
path: tests/**/*-snapshots
retention-days: 7

- name: Upload Playwright report
Expand Down
6 changes: 4 additions & 2 deletions components/SiteFooter/SiteFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</div>
<div class="fr-col-12 fr-col-sm-3">
<h3 class="fr-footer__top-cat !text-xs !leading-5 !mb-3">
{{ $t('Ressources') }}
{{ $t('Verticales thématiques') }}
</h3>
<ul class="fr-footer__top-list">
<li
Expand Down Expand Up @@ -313,6 +313,7 @@ if (config.public.csvDatasetId) {

openDataLinks.push({ label: t(`Suivre l'ouverture des données`), link: 'https://ouverture.data.gouv.fr' })
openDataLinks.push({ label: t('Portail des données européennes'), link: 'https://data.europa.eu' })
openDataLinks.push({ label: config.public.schemasSite.name, link: config.public.schemasSite.url })

const platformLinks: Array<Link> = [
{ label: t('Guides'), link: config.public.guidesUrl, external: true },
Expand All @@ -323,11 +324,12 @@ const platformLinks: Array<Link> = [
]

const resourcesLinks: Array<Link> = [
{ label: config.public.schemasSite.name, link: config.public.schemasSite.url },
{ label: 'meteo.data.gouv.fr', link: 'https://meteo.data.gouv.fr' },
{ label: 'transport.data.gouv.fr', link: 'https://transport.data.gouv.fr' },
{ label: 'ecologie.data.gouv.fr', link: 'https://ecologie.data.gouv.fr' },
{ label: 'defis.data.gouv.fr', link: 'https://defis.data.gouv.fr' },
{ label: 'culture.data.gouv.fr', link: 'https://culture.data.gouv.fr' },
{ label: 'logistique.data.gouv.fr', link: 'https://logistique.data.gouv.fr' },
]

const footerLinks: Array<Link> = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"postinstall": "nuxt prepare",
"prepare": "husky",
"test:e2e": "playwright test",
"test:e2e:update-screenshots": "playwright test tests/homepage.spec.ts --update-snapshots",
"test:e2e:update-screenshots": "playwright test tests/homepage.spec.ts tests/edito/pages-editor.spec.ts --update-snapshots",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:show-report": "bash -c 'rm -rf /tmp/playwright && mkdir /tmp/playwright && mv \"$1\" /tmp/playwright/report.zip && unzip -d /tmp/playwright /tmp/playwright/report.zip && pnpm exec playwright show-report /tmp/playwright' _"
Expand Down
22 changes: 22 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@
{ name: 'ecologie', url: 'https://ecologie.data.gouv.fr' },
{ name: 'transport', url: 'https://transport.data.gouv.fr' },
{ name: 'météo', url: 'https://meteo.data.gouv.fr' },
{ name: 'culture', url: 'https://culture.data.gouv.fr' },
{ name: 'logistique', url: 'https://logistique.data.gouv.fr' },
]"
:key="platform.name"
class="relative bg-gray-disabled p-4 space-y-2 hover:bg-gray-plain"
Expand Down Expand Up @@ -390,6 +392,26 @@
<strong>Météo-France</strong>
</template>
</TranslationT>
<TranslationT
v-if="platform.name === 'culture'"
tag="p"
class="mb-0 text-gray-silver"
keypath="Les données publiques relatives à la Culture en France en partenariat avec le {name}."
>
<template #name>
<strong>Ministère de la Culture</strong>
</template>
</TranslationT>
<TranslationT
v-if="platform.name === 'logistique'"
tag="p"
class="mb-0 text-gray-silver"
keypath="Les données relatives à la logistique en partenariat avec la {name}."
>
<template #name>
<strong>Direction Générale des Infrastructures, des Transports et des Mobilités</strong>
</template>
</TranslationT>
</div>
</div>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion tests/posts/blocs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ async function createPostWithBlocs(page: Page, options: {
kind?: 'news' | 'page'
}) {
await page.goto('/admin/posts/new')
await page.getByRole('textbox', { name: 'Titre de l\'article' }).fill(options.title)
const input = page.getByRole('textbox', { name: 'Titre de l\'article' })
await input.waitFor()
await input.fill(options.title)
await page.getByRole('textbox', { name: 'Entête' }).fill(options.headline)

if (options.kind === 'page') {
Expand Down
1 change: 1 addition & 0 deletions tests/posts/kind.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test.describe('Post kind filter', () => {

// Create a news post via form
await page.goto('/admin/posts/new')
await page.waitForLoadState('networkidle')
await page.getByRole('textbox', { name: 'Titre de l\'article' }).fill(`Test News ${uniqueId}`)
await page.getByRole('textbox', { name: 'Entête' }).fill('Une actualité de test')
await page.getByText('Actualité', { exact: true }).click()
Expand Down
Loading