fix test with gender update

As the value was translated, the test cannot check in the page if the value
is updated.

We also remove the "incomplete" test, as we cannot consider this test is 
incomplete because the new value is checked from the database.
This commit is contained in:
Julien Fastré 2016-01-01 23:10:39 +01:00
parent 67ac2428bc
commit 4e4f45e2bc

View File

@ -177,8 +177,9 @@ class PersonControllerUpdateTest extends WebTestCase
$this->assertGreaterThan(0, $crawler->filter('.success')->count(),
'a element .success is shown');
if($field == 'birthdate' or $field == 'memo' or $field == 'countryOfBirth' or $field == 'nationality') {
$this->markTestIncomplete('Test html:contains("'.$value.'") was not performed');
if($field == 'birthdate' or $field == 'memo' or $field == 'countryOfBirth' or $field == 'nationality'
or $field == 'gender') {
// we do not perform test on the web page contents.
} else {
$this->assertGreaterThan(0, $crawler->filter('html:contains("'.$value.'")')->count());
}