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:
@@ -172,72 +172,12 @@ describe('Forms Responsive', function () {
|
||||
});
|
||||
|
||||
describe('Footer Responsive', function () {
|
||||
test('footer has responsive grid', function () {
|
||||
$viewPath = resource_path('views/components/footer.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('grid-cols-1 sm:grid-cols-2 lg:grid-cols-3');
|
||||
});
|
||||
|
||||
test('footer has responsive padding', function () {
|
||||
$viewPath = resource_path('views/components/footer.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('px-4 sm:px-6 lg:px-8');
|
||||
});
|
||||
|
||||
test('footer links are touch-friendly', function () {
|
||||
$viewPath = resource_path('views/components/footer.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('min-h-[44px]');
|
||||
});
|
||||
});
|
||||
|
||||
describe('Public Pages Responsive', function () {
|
||||
test('home page has responsive grid', function () {
|
||||
$viewPath = resource_path('views/pages/home.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('grid-cols-1 sm:grid-cols-2 lg:grid-cols-3');
|
||||
});
|
||||
|
||||
test('home page has responsive text sizing', function () {
|
||||
$viewPath = resource_path('views/pages/home.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('text-2xl sm:text-3xl lg:text-4xl');
|
||||
});
|
||||
|
||||
test('public layout has responsive padding', function () {
|
||||
$viewPath = resource_path('views/components/layouts/public.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('px-4 sm:px-6 lg:px-8');
|
||||
});
|
||||
});
|
||||
|
||||
describe('Posts Responsive', function () {
|
||||
test('posts list has responsive styling', function () {
|
||||
$viewPath = resource_path('views/livewire/pages/posts/index.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('p-4 sm:p-6');
|
||||
});
|
||||
|
||||
test('posts list uses empty-state class', function () {
|
||||
$viewPath = resource_path('views/livewire/pages/posts/index.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('empty-state');
|
||||
});
|
||||
|
||||
test('posts read more link is touch-friendly', function () {
|
||||
$viewPath = resource_path('views/livewire/pages/posts/index.blade.php');
|
||||
$viewContent = file_get_contents($viewPath);
|
||||
|
||||
expect($viewContent)->toContain('min-h-[44px]');
|
||||
});
|
||||
});
|
||||
|
||||
describe('Consultations Page Responsive', function () {
|
||||
|
||||
Reference in New Issue
Block a user