diff --git a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetAddressCompletionFragmentControllerTest.php b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetAddressCompletionFragmentControllerTest.php index 155fb41aa..bd3e242f7 100644 --- a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetAddressCompletionFragmentControllerTest.php +++ b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetAddressCompletionFragmentControllerTest.php @@ -16,7 +16,7 @@ public function testStreetAutoComplete(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('1 résultat trouvé', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('1 résultat', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(1, $options->count()); $this->assertSame('Rue Eugène Berthoud', $options->eq(0)->text()); diff --git a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php index 770cc86c3..6b264cec0 100644 --- a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php +++ b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php @@ -16,7 +16,7 @@ public function testCityAutoComplete(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('3 résultats trouvés', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('3 résultats', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(3, $options->count()); @@ -38,7 +38,7 @@ public function testCityAutoCompleteNoResults(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('Aucun résultat trouvé', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('Aucun résultat', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(0, $options->count()); } diff --git a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetDepartmentalRoadCompletionFragmentControllerTest.php b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetDepartmentalRoadCompletionFragmentControllerTest.php index 1e0d5be60..b39bfa737 100644 --- a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetDepartmentalRoadCompletionFragmentControllerTest.php +++ b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetDepartmentalRoadCompletionFragmentControllerTest.php @@ -16,7 +16,7 @@ public function testDepartmentalRoadAutoComplete(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('4 résultats trouvés', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('4 résultats', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(4, $options->count()); diff --git a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetIntersectionCompletionFragmentControllerTest.php b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetIntersectionCompletionFragmentControllerTest.php index c87f4f127..74c3f20d7 100644 --- a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetIntersectionCompletionFragmentControllerTest.php +++ b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetIntersectionCompletionFragmentControllerTest.php @@ -16,7 +16,7 @@ public function testIntersectionsAutoComplete(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('2 résultats trouvés', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('2 résultats', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(2, $options->count()); $this->assertSame('Boulevard Morland', $options->eq(0)->text()); @@ -31,7 +31,7 @@ public function testIntersectionsAutoCompleteWithSearch(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('1 résultat trouvé', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('1 résultat', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(1, $options->count()); $this->assertSame('Boulevard Morland', $options->eq(0)->text()); diff --git a/translations/messages.fr.xlf b/translations/messages.fr.xlf index 3861c17c7..8b3359bcc 100644 --- a/translations/messages.fr.xlf +++ b/translations/messages.fr.xlf @@ -170,7 +170,7 @@ common.autocomplete.results_count - {0} Aucun résultat trouvé | {1} 1 résultat trouvé | ]1,Inf[ %count% résultats trouvés + {0} Aucun résultat | {1} 1 résultat | ]1,Inf[ %count% résultats common.autocomplete.status.loading