tests: retire or rewrite old About/Home/Responsive/Navigation assertions superseded by the redesign

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Naser Mansour
2026-10-31 19:10:12 +02:00
parent 9263966266
commit f1ca648672
5 changed files with 23 additions and 471 deletions
+4 -11
View File
@@ -170,13 +170,6 @@ describe('Footer Component', function () {
});
describe('Language Toggle in Navigation', function () {
test('language toggle is visible', function () {
$this->get(route('home'))
->assertOk()
->assertSee('data-test="language-switch-ar"', false)
->assertSee('data-test="language-switch-en"', false);
});
test('switching to Arabic applies RTL layout', function () {
$this->get(route('language.switch', 'ar'))
->assertRedirect();
@@ -220,16 +213,16 @@ describe('Footer Translations', function () {
test('English footer translations are loaded', 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.copyright', [], 'en'))->toBe('Libra for Rights. All rights reserved.');
expect(__('footer.address', [], 'en'))->toBe('Jaffa Street - Next to Al-Shini - American Building - 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.copyright', [], 'ar'))->toBe('مكتب ليبرا للحقوق. جميع الحقوق محفوظة.');
expect(__('footer.address', [], 'ar'))->toBe('شارع يافا - بجانب الشني - العمارة الأمريكية - الطابق الرابع');
expect(__('footer.phone', [], 'ar'))->toBe('+970 599 353 502');
});
});