complete story 14.6
This commit is contained in:
@@ -146,6 +146,27 @@ describe('Footer Component', function () {
|
||||
->assertOk()
|
||||
->assertSee($currentYear);
|
||||
});
|
||||
|
||||
test('footer contains clickable phone number', function () {
|
||||
$this->get(route('home'))
|
||||
->assertOk()
|
||||
->assertSee('data-test="footer-phone"', false)
|
||||
->assertSee('href="tel:+970599353502"', false)
|
||||
->assertSee('+970 599 353 502');
|
||||
});
|
||||
|
||||
test('footer contains address', function () {
|
||||
$this->get(route('home'))
|
||||
->assertOk()
|
||||
->assertSee('data-test="footer-address"', false);
|
||||
});
|
||||
|
||||
test('footer contains clickable email', function () {
|
||||
$this->get(route('home'))
|
||||
->assertOk()
|
||||
->assertSee('data-test="footer-email"', false)
|
||||
->assertSee('href="mailto:info@libra.adv.ps"', false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Language Toggle in Navigation', function () {
|
||||
@@ -200,12 +221,16 @@ describe('Footer Translations', function () {
|
||||
expect(__('footer.terms', [], 'en'))->toBe('Terms of Service');
|
||||
expect(__('footer.privacy', [], 'en'))->toBe('Privacy Policy');
|
||||
expect(__('footer.copyright', [], 'en'))->toBe('Libra Law Firm. All rights reserved.');
|
||||
expect(__('footer.address', [], 'en'))->toBe('American Building - Next to Al-Shini - 4th Floor');
|
||||
expect(__('footer.phone', [], 'en'))->toBe('+970 599 353 502');
|
||||
});
|
||||
|
||||
test('Arabic footer translations are loaded', function () {
|
||||
expect(__('footer.terms', [], 'ar'))->toBe('شروط الخدمة');
|
||||
expect(__('footer.privacy', [], 'ar'))->toBe('سياسة الخصوصية');
|
||||
expect(__('footer.copyright', [], 'ar'))->toBe('مكتب الميزان للمحاماة. جميع الحقوق محفوظة.');
|
||||
expect(__('footer.address', [], 'ar'))->toBe('العمارة الأمريكية - بجانب الشني - الطابق الرابع');
|
||||
expect(__('footer.phone', [], 'ar'))->toBe('+970 599 353 502');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user