mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix test with new labels / classes
This commit is contained in:
parent
0c49a21fb6
commit
986d10724e
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user