try to fix button in controller issue

This commit is contained in:
Julien Fastré 2021-09-29 17:21:50 +02:00
parent 62d3bf8742
commit 6430de94a7
2 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@
</div> </div>
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<button type="submit" class="btn btn-save"> <button type="submit" class="btn btn-save" id="form_household_comment_confirm">
{{ 'Save'|trans }} {{ 'Save'|trans }}
</button> </button>
</li> </li>

View File

@ -18,7 +18,7 @@ class HouseholdControllerTest extends WebTestCase
protected function setUp() protected function setUp()
{ {
$this->client = $this->getClientAuthenticated(); $this->client = $this->getClientAuthenticated();
} }
/** /**
* @dataProvider generateValidHouseholdIds * @dataProvider generateValidHouseholdIds
@ -49,7 +49,7 @@ class HouseholdControllerTest extends WebTestCase
$this->assertResponseIsSuccessful(); $this->assertResponseIsSuccessful();
$form = $crawler->selectButton('Enregistrer') $form = $crawler->filter('#form_household_comment_confirm')
->form(); ->form();
$form['household[commentMembers][comment]'] = "This is a text **generated** by automatic tests"; $form['household[commentMembers][comment]'] = "This is a text **generated** by automatic tests";
@ -109,8 +109,8 @@ class HouseholdControllerTest extends WebTestCase
\shuffle($ids); \shuffle($ids);
yield [ \array_pop($ids)['id'] ]; yield [ \array_pop($ids)['id'] ];
yield [ \array_pop($ids)['id'] ]; yield [ \array_pop($ids)['id'] ];
yield [ \array_pop($ids)['id'] ]; yield [ \array_pop($ids)['id'] ];
} }
} }