- Added `barryvdh/laravel-dompdf` to `composer.json` for PDF generation capabilities. - Updated `boost.json` to include `tailwindcss-development` in skills. - Modified `package.json` and `package-lock.json` to upgrade Tailwind CSS and related packages. - Improved README.md for clarity and corrected French language errors. - Created design system documentation for Filament components. - Added new Filament pages for Dashboard and Documentation with dynamic content loading. - Enhanced TablesExplorer functionality with improved table and column management.
47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
|
|
use App\Filament\Pages\Dashboard;
|
|
use App\Models\User;
|
|
use Livewire\Livewire;
|
|
|
|
beforeEach(function () {
|
|
$this->actingAs(User::factory()->create());
|
|
});
|
|
|
|
it('renders the dashboard page', function () {
|
|
Livewire::test(Dashboard::class)
|
|
->assertSuccessful();
|
|
});
|
|
|
|
it('displays the project title and description', function () {
|
|
Livewire::test(Dashboard::class)
|
|
->assertSee('Bienvenue sur API Logistics')
|
|
->assertSee('Flex/ESI Gescom');
|
|
});
|
|
|
|
it('shows navigation links to all pages', function () {
|
|
Livewire::test(Dashboard::class)
|
|
->assertSee('Tables')
|
|
->assertSee('Articles')
|
|
->assertSee('Documents')
|
|
->assertSee('Journaux')
|
|
->assertSee('Tiers')
|
|
->assertSee('Documentation');
|
|
});
|
|
|
|
it('displays project statistics', function () {
|
|
Livewire::test(Dashboard::class)
|
|
->assertSee('Endpoints API')
|
|
->assertSee('Tables accessibles')
|
|
->assertSee('Pages Filament')
|
|
->assertSee('Tests Pest');
|
|
});
|
|
|
|
it('shows technical information', function () {
|
|
Livewire::test(Dashboard::class)
|
|
->assertSee('Informations techniques')
|
|
->assertSee('Laravel 12')
|
|
->assertSee('Filament 5')
|
|
->assertSee('Livewire 4');
|
|
});
|