complete story 14.2

This commit is contained in:
Naser Mansour
2026-01-09 16:57:12 +02:00
parent 972af7a127
commit a0965c83bc
6 changed files with 174 additions and 10 deletions
+77
View File
@@ -78,3 +78,80 @@ test('home page contains services section with id', function () {
->assertOk()
->assertSee('id="services"', false);
});
// About Section Tests
test('home page contains about section with id', function () {
$this->get('/')
->assertOk()
->assertSee('id="about"', false);
});
test('home page displays about section title in English', function () {
$this->withSession(['locale' => 'en'])
->get('/')
->assertOk()
->assertSee('Meet the Founder');
});
test('home page displays about section title in Arabic', function () {
$this->withSession(['locale' => 'ar'])
->get('/')
->assertOk()
->assertSee('تعرف على المؤسِّسة');
});
test('home page displays lawyer name in English', function () {
$this->withSession(['locale' => 'en'])
->get('/')
->assertOk()
->assertSee('Huda Armouche');
});
test('home page displays lawyer name in Arabic', function () {
$this->withSession(['locale' => 'ar'])
->get('/')
->assertOk()
->assertSee('هدى عرموش');
});
test('home page displays lawyer title in English', function () {
$this->withSession(['locale' => 'en'])
->get('/')
->assertOk()
->assertSee('Attorney at Law');
});
test('home page displays lawyer title in Arabic', function () {
$this->withSession(['locale' => 'ar'])
->get('/')
->assertOk()
->assertSee('محامية');
});
test('home page displays lawyer bio in English', function () {
$this->withSession(['locale' => 'en'])
->get('/')
->assertOk()
->assertSee('Huda Armouche founded Libra for Rights');
});
test('home page displays lawyer bio in Arabic', function () {
$this->withSession(['locale' => 'ar'])
->get('/')
->assertOk()
->assertSee('أسست هدى عرموش ليبرا للحقوق');
});
test('home page displays lawyer photo', function () {
$this->get('/')
->assertOk()
->assertSee('images/huda-armouche.jpg', false);
});
test('home page lawyer photo has alt text for accessibility', function () {
$this->withSession(['locale' => 'en'])
->get('/')
->assertOk()
->assertSee('alt="Huda Armouche"', false);
});