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

Fix typos du champ végétaux infestés #433

Merged
merged 1 commit into from
Nov 15, 2024
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
9 changes: 4 additions & 5 deletions sv/templates/sv/fichedetection_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,13 @@ <h2>Objet de l'évènement</h2>
<p class="objet-evenement__field-value">{{ fichedetection.date_premier_signalement|default:"nc." }}</p>
</div>
<div class="objet-evenement__field">
<p class="objet-evenement__field-label">Commentaire</p>
<p class="objet-evenement__field-value">{{ fichedetection.commentaire|default:"nc." }}</p>
<p class="objet-evenement__field-label">Végétaux infestés</p>
<p class="objet-evenement__field-value">{{ fichedetection.vegetaux_infestes|default:"nc." }}</p>
</div>
<div class="objet-evenement__field">
<p class="objet-evenement__field-label">Végétaux inféstés</p>
<p class="objet-evenement__field-value">{{ fichedetection.vegetaux_infestes|default:"nc." }}</p>
<p class="objet-evenement__field-label">Commentaire</p>
<p class="objet-evenement__field-value">{{ fichedetection.commentaire|default:"nc." }}</p>
</div>

</div>

<!-- Lieux -->
Expand Down
2 changes: 1 addition & 1 deletion sv/templates/sv/fichedetection_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h2>Objet de l'évènement</h2>
<input x-text="ficheDetection.datePremierSignalement" x-model="ficheDetection.datePremierSignalement" type="date" id="date-1er-signalement-input" class="fr-input" max="{% now "Y-m-d" %}">
</p>
<p>
<label class="fr-label" for="vegetaux-infestes-input">Végétaux inféstés</label>
<label class="fr-label" for="vegetaux-infestes-input">Végétaux infestés</label>
<textarea x-model="ficheDetection.vegetauxInfestes" id="vegetaux-infestes-input" class="fr-input" maxlength="500"></textarea>
</p>
<p>
Expand Down
4 changes: 2 additions & 2 deletions sv/tests/test_fichedetection_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def test_fiche_detection_create_without_lieux_and_prelevement(
page.get_by_label("Date 1er signalement").fill("2024-04-21")
page.get_by_label("Commentaire").click()
page.get_by_label("Commentaire").fill("test commentaire")
page.get_by_label("Végétaux inféstés").click()
page.get_by_label("Végétaux inféstés").fill("3 citronniers")
page.get_by_label("Végétaux infestés").click()
page.get_by_label("Végétaux infestés").fill("3 citronniers")
page.get_by_label("Mesures conservatoires immé").click()
page.get_by_label("Mesures conservatoires immé").fill("test mesures conservatoires")
page.get_by_label("Mesures de consignation").click()
Expand Down
2 changes: 1 addition & 1 deletion sv/tests/test_fichedetection_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_fiche_detection_update_page_content(
# Commentaire
expect(form_elements.commentaire_input).to_have_value(fiche_detection.commentaire)

# Végétaux inféstés
# Végétaux infestés
expect(form_elements.vegetaux_infestes_input).to_have_value(fiche_detection.vegetaux_infestes)

# Mesures conservatoires immédiates
Expand Down
4 changes: 2 additions & 2 deletions sv/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ def commentaire_input(self) -> Locator:

@property
def vegetaux_infestes_label(self) -> Locator:
return self.page.get_by_text("Végétaux inféstés")
return self.page.get_by_text("Végétaux infestés")

@property
def vegetaux_infestes_input(self) -> Locator:
return self.page.get_by_label("Végétaux inféstés")
return self.page.get_by_label("Végétaux infestés")

@property
def mesures_conservatoires_immediates_label(self) -> Locator:
Expand Down