Move recordings UI to Livewire pages with Flux components.
Replace controller-driven Blade views with full-page Livewire index/show/create flows so Flux tables, toasts, and uploads work natively.
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Livewire\Recordings\Show;
|
||||
use App\Models\Recording;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Livewire\Livewire;
|
||||
use Tests\TestCase;
|
||||
|
||||
class RecordingOwnershipTest extends TestCase
|
||||
@@ -74,8 +76,9 @@ class RecordingOwnershipTest extends TestCase
|
||||
'transcription_status' => 'done',
|
||||
]);
|
||||
|
||||
$this->actingAs($intruder)
|
||||
->delete(route('recordings.destroy', $recording))
|
||||
$this->actingAs($intruder);
|
||||
|
||||
Livewire::test(Show::class, ['recording' => $recording])
|
||||
->assertForbidden();
|
||||
|
||||
$this->assertDatabaseHas('recordings', ['id' => $recording->id]);
|
||||
|
||||
Reference in New Issue
Block a user