Skip to content

Commit

Permalink
fix: few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
johanricher committed May 10, 2023
1 parent 457e86d commit 799af7d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/src/lib/components/DatasetForm/DatasetForm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib/components/DatasetForm/DatasetForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
/>
</div>

<h2 id="mot-cles" class="fr-mb-5w">Mot-clés thématiques</h2>
<h2 id="mot-cles" class="fr-mb-5w">Mots-clés thématiques</h2>

<div class="form--content fr-mb-8w">
<TagSelector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$: options = [
{
label: "Réinistialiser le filtre",
label: "Réinitialiser le filtre",
value: "",
},
...options,
Expand Down
4 changes: 2 additions & 2 deletions client/src/lib/components/TagSelector/TagSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
bind:value
on:change={handleChange}
required
label={"Mot-clés"}
hintText="Les mot-clés seront utilisés par les réutilisateurs pour affiner leur recherche. Sélectionnez ceux qui vous semblent les plus représentatifs de vos données."
label={"Mots-clés"}
hintText="Les mots-clés seront utilisés par les réutilisateurs pour affiner leur recherche. Sélectionnez ceux qui vous semblent les plus représentatifs de vos données."
{id}
{name}
placeholder="Ajouter un mot-clé"
Expand Down
4 changes: 2 additions & 2 deletions client/src/lib/util/datasetFilters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test("buildActiveFiltersMap", () => {
value: "myorganization",
},
geographicalCoverage: {
key: "Couverture géopgraphique",
key: "Couverture géographique",
value: "oversea",
},
service: {
Expand Down Expand Up @@ -142,7 +142,7 @@ test("getActiveFiltersMap", () => {
value: "myorganization",
},
geographicalCoverage: {
key: "Couverture géopgraphique",
key: "Couverture géographique",
value: "oversea",
},
service: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib/util/datasetFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const buildActiveFiltersMap = (
: undefined,
geographicalCoverage: filtersValue.geographicalCoverage
? {
key: "Couverture géopgraphique",
key: "Couverture géographique",
value: filtersValue.geographicalCoverage,
}
: undefined,
Expand Down
4 changes: 2 additions & 2 deletions client/src/tests/e2e/contribuer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 799af7d

Please sign in to comment.