Skip to content

Commit

Permalink
Changement du message d'erreur pour cohérence (#1079)
Browse files Browse the repository at this point in the history
* change commune en code postal

* mise à jour du test
  • Loading branch information
Lealefoulon authored Nov 21, 2024
1 parent dba91d6 commit e21427f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testInvalidLaneBlankCityCode(): void
$crawler = $client->request($form->getMethod(), $form->getUri(), $values, $form->getPhpFiles());

$this->assertResponseStatusCodeSame(422);
$this->assertSame('Veuillez choisir une ville ou commune parmi la liste.', $crawler->filter('#measure_form_locations_0_namedStreet_cityLabel_error')->text());
$this->assertSame('Veuillez choisir une ville ou un code postal parmi la liste.', $crawler->filter('#measure_form_locations_0_namedStreet_cityLabel_error')->text());
}

public function testInvalidDepartmentalRoad(): void
Expand Down
2 changes: 1 addition & 1 deletion translations/validators.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</trans-unit>
<trans-unit id="regulation.location.cityCode.error.blank">
<source>regulation.location.cityCode.error.blank</source>
<target>Veuillez choisir une ville ou commune parmi la liste.</target>
<target>Veuillez choisir une ville ou un code postal parmi la liste.</target>
</trans-unit>
<trans-unit id="regulation.location.error.abscissa_out_of_range">
<source>regulation.location.error.abscissa_out_of_range</source>
Expand Down

0 comments on commit e21427f

Please sign in to comment.