fix test with new labels / classes

This commit is contained in:
Julien Fastré 2017-08-29 17:42:38 +02:00
parent 0c49a21fb6
commit 986d10724e

View File

@ -378,12 +378,12 @@ class ReportControllerTest extends WebTestCase
$this->assertTrue($client->getResponse()->isSuccessful());
$linkSee = $crawler->selectLink('Voir le rapport')->links();
$linkSee = $crawler->filter('.bt-view')->links();
$this->assertGreaterThan(0, count($linkSee));
$this->assertRegExp(sprintf('|/fr/person/%s/report/[0-9]*/view$|',
static::$person->getId(), $reportId), $linkSee[0]->getUri());
$linkUpdate = $crawler->selectLink('Mettre à jour')->links();
$linkUpdate = $crawler->filter('.bt-update')->links();
$this->assertGreaterThan(0, count($linkUpdate));
$this->assertRegExp(sprintf('|/fr/person/%s/report/[0-9]*/edit$|',
static::$person->getId(), $reportId), $linkUpdate[0]->getUri());