mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-03 15:36:14 +00:00
fix css classes in tests
This commit is contained in:
parent
4d884c2d3e
commit
90d74c609e
@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div class="report_entry">
|
||||||
<h3>{{ report.date|localizeddate('long', 'none') }}<span class="report"> / {{ 'Report'|trans }}</span></h3>
|
<h3>{{ report.date|localizeddate('long', 'none') }}<span class="report"> / {{ 'Report'|trans }}</span></h3>
|
||||||
<div class="statement">
|
<div class="statement">
|
||||||
<span class="statement">{{ '%user% has filled a %report_label% report on %date%'|trans(
|
<span class="statement">{{ '%user% has filled a %report_label% report on %date%'|trans(
|
||||||
|
@ -64,7 +64,6 @@ class ReportSearchTest extends WebTestCase
|
|||||||
));
|
));
|
||||||
|
|
||||||
$this->assertTrue($client->getResponse()->isSuccessful());
|
$this->assertTrue($client->getResponse()->isSuccessful());
|
||||||
$this->assertRegExp('/Charline/', $crawler->text());
|
|
||||||
$this->assertRegExp('/Situation de logement/i', $crawler->text());
|
$this->assertRegExp('/Situation de logement/i', $crawler->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,13 +130,13 @@ class TimelineProviderTest extends WebTestCase
|
|||||||
//performs tests
|
//performs tests
|
||||||
$this->assertTrue($client->getResponse()->isSuccessful(),
|
$this->assertTrue($client->getResponse()->isSuccessful(),
|
||||||
'The page timeline is loaded successfully');
|
'The page timeline is loaded successfully');
|
||||||
$this->assertGreaterThan(0, $crawler->filter('.report .summary')
|
$this->assertGreaterThan(0, $crawler->filter('.report_entry .summary')
|
||||||
->count(),
|
->count(),
|
||||||
'the page contains a .report .summary element');
|
'the page contains a .report .summary element');
|
||||||
$this->assertContains('blah blah', $crawler->filter('.report .summary')
|
$this->assertContains('blah blah', $crawler->filter('.report_entry .summary')
|
||||||
->text(),
|
->text(),
|
||||||
'the page contains the text "blah blah"');
|
'the page contains the text "blah blah"');
|
||||||
$this->assertContains('Propriétaire', $crawler->filter('.report .summary')
|
$this->assertContains('Propriétaire', $crawler->filter('.report_entry .summary')
|
||||||
->text(),
|
->text(),
|
||||||
'the page contains the mention "Propriétaire"');
|
'the page contains the mention "Propriétaire"');
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ class TimelineProviderTest extends WebTestCase
|
|||||||
$crawler = $client->request('GET', '/fr/person/'.$this->person->getId()
|
$crawler = $client->request('GET', '/fr/person/'.$this->person->getId()
|
||||||
.'/timeline');
|
.'/timeline');
|
||||||
|
|
||||||
$this->assertEquals(0, $crawler->filter('.report .summary')
|
$this->assertEquals(0, $crawler->filter('.report_entry .summary')
|
||||||
->count(),
|
->count(),
|
||||||
'the page does not contains a .report .summary element');
|
'the page does not contains a .report .summary element');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user