Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction de quelques erreurs typographiques #603

Merged
merged 1 commit into from
May 10, 2023
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 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