mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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:
parent
67ac2428bc
commit
4e4f45e2bc
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user