From 80684f65fea296326f2dead0bf4a565b04291061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 28 Aug 2023 17:59:13 +0200 Subject: [PATCH] Fix button selecton on PersonControllerCreateTest --- .../Tests/Controller/PersonControllerCreateTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index 0e7b2c9f1..ad41e484e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -86,12 +86,12 @@ final class PersonControllerCreateTest extends WebTestCase $client->getResponse()->isSuccessful(), 'The page is accessible at the URL /{_locale}/person/new' ); - $form = $crawler->selectButton('Ajouter la personne')->form(); + $form = $crawler->selectButton("Créer l'usager")->form(); $this->assertInstanceOf( \Symfony\Component\DomCrawler\Form::class, $form, - 'The page contains a butto ' + 'The page contains a button' ); $this->assertTrue( $form->has(self::FIRSTNAME_INPUT),