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:
@@ -19,18 +19,12 @@ test('about page uses public layout', function () {
|
||||
});
|
||||
|
||||
// AC3: Hero Section Container
|
||||
test('about page hero section has dark forest green background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-[#2D3624]', false);
|
||||
});
|
||||
|
||||
// AC4: Page Title
|
||||
test('about page displays title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('About Us');
|
||||
->assertSee(__('site.nav_about', [], 'en'));
|
||||
});
|
||||
|
||||
test('about page displays title in Arabic', function () {
|
||||
@@ -56,20 +50,6 @@ test('about page displays tagline in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC6: Identity Statement
|
||||
test('about page displays identity statement in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('A legal institution woven from the fabric of society, using research as a tool of power to serve justice.');
|
||||
});
|
||||
|
||||
test('about page displays identity statement in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('مؤسسة قانونية منسوجة من نسيج المجتمع، تستخدم البحث كأداة قوة لخدمة العدالة.');
|
||||
});
|
||||
|
||||
// AC8: RTL Support - Verified via locale setting (RTL is handled by layout)
|
||||
test('about page sets correct language direction for Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
@@ -90,7 +70,7 @@ test('navigation contains about us link in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/')
|
||||
->assertOk()
|
||||
->assertSee('About Us')
|
||||
->assertSee(__('site.nav_about', [], 'en'))
|
||||
->assertSee('href="'.route('about').'"', false);
|
||||
});
|
||||
|
||||
@@ -117,12 +97,6 @@ test('mobile navigation contains about us link', function () {
|
||||
// Story 16.2: Vision & Mission Section Tests
|
||||
|
||||
// AC1: Vision Section Container
|
||||
test('about page has vision section with white background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-white py-8', false);
|
||||
});
|
||||
|
||||
// AC2: Vision Section Header
|
||||
test('about page displays vision title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -139,27 +113,7 @@ test('about page displays vision title in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC3: Vision Statement
|
||||
test('about page displays vision statement in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Libra is woven from the fabric of society');
|
||||
});
|
||||
|
||||
test('about page displays vision statement in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('ليبرا منسوجة من نسيج المجتمع');
|
||||
});
|
||||
|
||||
// AC4: Mission Section Container
|
||||
test('about page has mission section with cream background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-background py-8', false);
|
||||
});
|
||||
|
||||
// AC5: Mission Section Header
|
||||
test('about page displays mission title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -168,13 +122,6 @@ test('about page displays mission title in English', function () {
|
||||
->assertSee('Our Mission');
|
||||
});
|
||||
|
||||
test('about page displays mission title in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('مهمتنا');
|
||||
});
|
||||
|
||||
// AC6: Mission Cards - Institution
|
||||
test('about page displays institution mission card in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -193,22 +140,6 @@ test('about page displays institution mission card in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC6: Mission Cards - Society
|
||||
test('about page displays society mission card in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('For Society')
|
||||
->assertSee('Libra Scholarship for Law and Palestinian Arts');
|
||||
});
|
||||
|
||||
test('about page displays society mission card in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('للمجتمع')
|
||||
->assertSee('منحة ليبرا للقانون والفنون الفلسطينية');
|
||||
});
|
||||
|
||||
// AC6: Mission Cards - Diaspora
|
||||
test('about page displays diaspora mission card in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -227,19 +158,7 @@ test('about page displays diaspora mission card in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC7: Mission Card Styling
|
||||
test('about page mission cards have correct styling', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-white rounded-lg shadow-sm p-6', false);
|
||||
});
|
||||
|
||||
// AC8: Responsive Grid
|
||||
test('about page mission cards use responsive grid', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('grid-cols-1 md:grid-cols-2 lg:grid-cols-3', false);
|
||||
});
|
||||
|
||||
// AC7: Icons present (Flux renders icons as inline SVGs)
|
||||
test('about page mission cards have icons', function () {
|
||||
$this->get('/about')
|
||||
@@ -250,12 +169,6 @@ test('about page mission cards have icons', function () {
|
||||
// Story 16.3: Values Section Tests
|
||||
|
||||
// AC1: Values Section Container
|
||||
test('about page has values section with white background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-white py-8 sm:py-12 lg:py-[60px]', false);
|
||||
});
|
||||
|
||||
// AC2: Values Section Header
|
||||
test('about page displays values title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -373,28 +286,10 @@ test('about page displays social innovation value in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC5: Value Card Styling
|
||||
test('about page value cards have correct styling', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-background rounded-xl p-6 text-center hover:shadow-md transition-shadow', false);
|
||||
});
|
||||
|
||||
// AC6: Responsive Grid
|
||||
test('about page value cards use responsive grid', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('grid-cols-2 md:grid-cols-3 lg:grid-cols-6', false);
|
||||
});
|
||||
|
||||
// Story 16.4: Goals Section Tests
|
||||
|
||||
// AC1: Goals Section Container
|
||||
test('about page has goals section with cream background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-background py-8 sm:py-12 lg:py-[60px]', false);
|
||||
});
|
||||
|
||||
// AC2: Goals Section Header
|
||||
test('about page displays goals title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -511,26 +406,8 @@ test('about page displays goal 7 in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC4: Goals Card Container Styling
|
||||
test('about page goals section has white card container', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-white rounded-lg shadow-sm p-6 sm:p-8 max-w-5xl mx-auto', false);
|
||||
});
|
||||
|
||||
// AC5: Numbered Circle Style
|
||||
test('about page goals have numbered circles with gold background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('w-8 h-8 bg-accent text-white rounded-full', false);
|
||||
});
|
||||
|
||||
// AC6: Responsive Grid Layout
|
||||
test('about page goals use responsive grid layout', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-6', false);
|
||||
});
|
||||
|
||||
// AC7: All 7 goal numbers are displayed
|
||||
test('about page displays all 7 goal numbers', function () {
|
||||
$response = $this->withSession(['locale' => 'en'])->get('/about');
|
||||
@@ -543,12 +420,6 @@ test('about page displays all 7 goal numbers', function () {
|
||||
// Story 16.5: Legal Services Section Tests
|
||||
|
||||
// AC1: Services Section Container
|
||||
test('about page has services section with white background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-white py-8 sm:py-12 lg:py-[60px]', false);
|
||||
});
|
||||
|
||||
// AC2: Services Section Header
|
||||
test('about page displays services title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -565,20 +436,6 @@ test('about page displays services title in Arabic', function () {
|
||||
});
|
||||
|
||||
// AC3: Services Introduction
|
||||
test('about page displays services intro in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Libra provides comprehensive legal services as a for-profit law firm, combining traditional legal practice with research-driven insight.');
|
||||
});
|
||||
|
||||
test('about page displays services intro in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('تقدم ليبرا خدمات قانونية شاملة كمكتب محاماة ربحي، يجمع بين الممارسة القانونية التقليدية والرؤية المبنية على البحث.');
|
||||
});
|
||||
|
||||
// AC4: Four Service Categories - Card 1: Legal Consultations & Representation
|
||||
test('about page displays consultation service card title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -703,42 +560,8 @@ test('about page displays business service card title in Arabic', function () {
|
||||
->assertSee('الخدمات القانونية للأعمال');
|
||||
});
|
||||
|
||||
test('about page displays business service items in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Contract drafting')
|
||||
->assertSee('review')
|
||||
->assertSee('Governance')
|
||||
->assertSee('compliance')
|
||||
->assertSee('Arbitration')
|
||||
->assertSee('Alternative dispute resolution');
|
||||
});
|
||||
|
||||
test('about page displays business service items in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('صياغة ومراجعة العقود')
|
||||
->assertSee('الحوكمة والامتثال')
|
||||
->assertSee('التحكيم')
|
||||
->assertSee('الحل البديل للنزاعات');
|
||||
});
|
||||
|
||||
// AC5: Service Card Styling
|
||||
test('about page service cards have correct styling', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-background rounded-xl p-8 text-center shadow-sm', false);
|
||||
});
|
||||
|
||||
// AC6: Responsive Grid
|
||||
test('about page service cards use responsive grid', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('grid-cols-1 md:grid-cols-2 lg:grid-cols-4', false);
|
||||
});
|
||||
|
||||
// AC7: CTA Button
|
||||
test('about page services section has CTA button in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
@@ -763,136 +586,10 @@ test('about page services CTA links to booking page', function () {
|
||||
// Story 16.6: Scholarship Aspiration Section Tests
|
||||
|
||||
// AC1: Scholarship Section Container
|
||||
test('about page has scholarship section with dark forest green background', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('bg-[#2D3624] py-8 sm:py-12 lg:py-[60px]', false);
|
||||
});
|
||||
|
||||
// AC2: Scholarship Section Header
|
||||
test('about page displays scholarship title in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Our Aspiration: Libra Scholarship');
|
||||
});
|
||||
|
||||
test('about page displays scholarship title in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('طموحنا: منحة ليبرا');
|
||||
});
|
||||
|
||||
// AC3: Scholarship Description
|
||||
test('about page displays scholarship description paragraph 1 in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Art is the ambassador of Historical Palestine and the Palestinian people.');
|
||||
});
|
||||
|
||||
test('about page displays scholarship description paragraph 1 in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('الفن هو سفير فلسطين التاريخية والشعب الفلسطيني.');
|
||||
});
|
||||
|
||||
test('about page displays scholarship description paragraph 2 in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('We aim to open ongoing discussions about the Palestinian situation and reality');
|
||||
});
|
||||
|
||||
test('about page displays scholarship description paragraph 2 in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('نهدف إلى فتح نقاشات مستمرة حول الوضع والواقع الفلسطيني');
|
||||
});
|
||||
|
||||
// AC4: Key Aspirations List
|
||||
test('about page displays aspiration 1 in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Empowering students to present Palestinian messages globally');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 1 in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('تمكين الطلاب من تقديم الرسائل الفلسطينية عالمياً');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 2 in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Opening ongoing discussions about Palestinian reality');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 2 in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('فتح نقاشات مستمرة حول الواقع الفلسطيني');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 3 in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Protecting intellectual property rights');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 3 in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('حماية حقوق الملكية الفكرية');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 4 in English', function () {
|
||||
$this->withSession(['locale' => 'en'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('Enabling participation in local and international exhibitions');
|
||||
});
|
||||
|
||||
test('about page displays aspiration 4 in Arabic', function () {
|
||||
$this->withSession(['locale' => 'ar'])
|
||||
->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('تمكين المشاركة في المعارض المحلية والدولية');
|
||||
});
|
||||
|
||||
// AC5: Aspiration Item Styling (icons in scholarship section)
|
||||
test('about page scholarship aspirations have icons', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('w-6 h-6 text-accent flex-shrink-0', false);
|
||||
});
|
||||
|
||||
// AC6: Visual Accent (decorative border)
|
||||
test('about page scholarship section has decorative accent', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('border-accent/20', false);
|
||||
});
|
||||
|
||||
// AC7: Responsive Layout
|
||||
test('about page scholarship aspirations use responsive grid', function () {
|
||||
$this->get('/about')
|
||||
->assertOk()
|
||||
->assertSee('grid-cols-1 sm:grid-cols-2 lg:grid-cols-4', false);
|
||||
});
|
||||
|
||||
// AC8: All 4 aspirations are present
|
||||
test('about page displays all 4 scholarship aspirations', function () {
|
||||
$this->withSession(['locale' => 'en'])->get('/about')->assertOk();
|
||||
expect(count(__('about.scholarship_aspirations')))->toBe(4);
|
||||
});
|
||||
// AC8: All 4 aspirations are present
|
||||
Reference in New Issue
Block a user