This commit is contained in:
2025-06-20 17:31:13 +02:00
parent 9158e33854
commit a38116cca4
65 changed files with 2298 additions and 2298 deletions

View File

@@ -28,6 +28,33 @@ final class TimelineAccompanyingPeriodTest extends WebTestCase
{
use PrepareClientTrait;
/**
* @dataProvider provideDataPersonWithAccompanyingPeriod
*/
public function testEntriesAreShown(mixed $personId): never
{
$this->markTestSkipped('page does not work');
$client = $this->getClientAuthenticated();
$crawler = $client->request('GET', "/en/person/{$personId}/timeline");
$this->assertTrue(
$client->getResponse()->isSuccessful(),
'the timeline page loads sucessfully'
);
$this->assertGreaterThan(
0,
$crawler->filter('.timeline div')->count(),
'the timeline page contains multiple div inside a .timeline element'
);
$this->assertStringContainsString(
'est ouvert',
$crawler->filter('.timeline')->text(),
"the text 'est ouvert' is present"
);
}
public static function provideDataPersonWithAccompanyingPeriod()
{
self::bootKernel();
@@ -55,31 +82,4 @@ final class TimelineAccompanyingPeriodTest extends WebTestCase
yield [\array_pop($personIds)['id']];
}
/**
* @dataProvider provideDataPersonWithAccompanyingPeriod
*/
public function testEntriesAreShown(mixed $personId): never
{
$this->markTestSkipped('page does not work');
$client = $this->getClientAuthenticated();
$crawler = $client->request('GET', "/en/person/{$personId}/timeline");
$this->assertTrue(
$client->getResponse()->isSuccessful(),
'the timeline page loads sucessfully'
);
$this->assertGreaterThan(
0,
$crawler->filter('.timeline div')->count(),
'the timeline page contains multiple div inside a .timeline element'
);
$this->assertStringContainsString(
'est ouvert',
$crawler->filter('.timeline')->text(),
"the text 'est ouvert' is present"
);
}
}