mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user