Skip to content

Commit

Permalink
Retire "trouvé"
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed May 23, 2024
1 parent fcf00cb commit 5f43b3c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion translations/messages.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</trans-unit>
<trans-unit id="common.autocomplete.results_count">
<source>common.autocomplete.results_count</source>
<target>{0} Aucun résultat trouvé | {1} 1 résultat trouvé | ]1,Inf[ %count% résultats trouvés</target>
<target>{0} Aucun résultat | {1} 1 résultat | ]1,Inf[ %count% résultats</target>
</trans-unit>
<trans-unit id="common.autocomplete.status.loading">
<source>common.autocomplete.status.loading</source>
Expand Down

0 comments on commit 5f43b3c

Please sign in to comment.