## Summary - add baseline compare evidence gap detail modeling and a dedicated Livewire table surface - extend baseline compare landing and operation run detail surfaces to expose evidence gap details and stats - add spec artifacts for feature 162 and expand feature coverage with focused Filament and baseline tests ## Notes - branch: `162-baseline-gap-details` - commit: `a92dd812` - working tree was clean after push ## Validation - tests were not run in this step Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #192
21 lines
745 B
PHP
21 lines
745 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('injects the unhandled rejection logger into Filament pages', function (): void {
|
|
$this->get('/admin/login')
|
|
->assertSuccessful()
|
|
->assertSee('js/tenantpilot/unhandled-rejection-logger.js', escape: false);
|
|
});
|
|
|
|
it('ships a window unhandledrejection logger with structured payload output', function (): void {
|
|
$js = file_get_contents(public_path('js/tenantpilot/unhandled-rejection-logger.js'));
|
|
|
|
expect($js)->toBeString();
|
|
expect($js)
|
|
->toContain('__tenantpilotUnhandledRejectionLoggerApplied')
|
|
->toContain("window.addEventListener('unhandledrejection'")
|
|
->toContain('TenantPilot unhandled promise rejection')
|
|
->toContain('JSON.stringify');
|
|
});
|