diff --git a/client/src/lib/components/DatasetForm/DatasetForm.spec.ts b/client/src/lib/components/DatasetForm/DatasetForm.spec.ts index 7c5abe09..a281829d 100644 --- a/client/src/lib/components/DatasetForm/DatasetForm.spec.ts +++ b/client/src/lib/components/DatasetForm/DatasetForm.spec.ts @@ -102,7 +102,7 @@ describe("Test the dataset form", () => { test('The "tags" field is present', async () => { const { getByLabelText } = render(DatasetForm, { catalog, formats: [] }); - const tags = getByLabelText("Mot-clés", { + const tags = getByLabelText("Mots-clés", { exact: false, }); expect(tags).toBeInTheDocument(); diff --git a/client/src/lib/components/DatasetForm/DatasetForm.svelte b/client/src/lib/components/DatasetForm/DatasetForm.svelte index ac5ddf7f..0f774aa4 100644 --- a/client/src/lib/components/DatasetForm/DatasetForm.svelte +++ b/client/src/lib/components/DatasetForm/DatasetForm.svelte @@ -301,7 +301,7 @@ /> -

Mot-clés thématiques

+

Mots-clés thématiques

{ value: "myorganization", }, geographicalCoverage: { - key: "Couverture géopgraphique", + key: "Couverture géographique", value: "oversea", }, service: { @@ -142,7 +142,7 @@ test("getActiveFiltersMap", () => { value: "myorganization", }, geographicalCoverage: { - key: "Couverture géopgraphique", + key: "Couverture géographique", value: "oversea", }, service: { diff --git a/client/src/lib/util/datasetFilters.ts b/client/src/lib/util/datasetFilters.ts index 6e2c9b5c..5f6346a3 100644 --- a/client/src/lib/util/datasetFilters.ts +++ b/client/src/lib/util/datasetFilters.ts @@ -52,7 +52,7 @@ export const buildActiveFiltersMap = ( : undefined, geographicalCoverage: filtersValue.geographicalCoverage ? { - key: "Couverture géopgraphique", + key: "Couverture géographique", value: filtersValue.geographicalCoverage, } : undefined, diff --git a/client/src/tests/e2e/contribuer.spec.ts b/client/src/tests/e2e/contribuer.spec.ts index 3e12f106..6db13262 100644 --- a/client/src/tests/e2e/contribuer.spec.ts +++ b/client/src/tests/e2e/contribuer.spec.ts @@ -205,9 +205,9 @@ test.describe("Basic form submission", () => { // Purposefully test a small-size section: it should become active // even if the next section is fairly high on the page. await page.click( - "[aria-label='Menu latéral'] >> text='Mot-clés thématiques'" + "[aria-label='Menu latéral'] >> text='Mots-clés thématiques'" ); - await expect(activeSidebarItem).toHaveText("Mot-clés thématiques"); + await expect(activeSidebarItem).toHaveText("Mots-clés thématiques"); // Move up 1/4th of the window, should make previous section active. await page.evaluate(() => window.scrollBy(0, -window.innerHeight / 4));