🔥 **Cleanup:** Removed obsolete .junie guideline files and MCP configuration.

 **Tests:** Added helper function `makeSignedNostrLoginEvent` for generating NIP-42 signed login events. Updated related tests in `Feature/Auth/NostrLoginTest.php` to use this helper.
🚀 **Livewire Testing:** Enhanced authorization checks and added specific creator-based mounts for `meetups.edit`. Improved tests for `MeetupMountTest` and `EditMeetupTest`.
🎨 **Style:** Standardized `request()->route()` to lowercase country codes across multiple Blade templates for consistency.
🛠️ **Config:** Updated `vite.config.js` formatting for improved readability in ignored paths.
This commit is contained in:
BT
2026-05-03 18:36:14 +02:00
parent cf330016a3
commit a4cbb10604
11 changed files with 116 additions and 523 deletions
+13 -2
View File
@@ -29,9 +29,20 @@ it('mounts meetups.create when authenticated', function () {
Livewire::test('meetups.create')->assertStatus(200);
});
it('mounts meetups.edit when authenticated', function () {
it('mounts meetups.edit when authenticated as the meetup creator', function () {
$owner = actingAsUser();
$meetup = Meetup::factory()->create([
'city_id' => $this->city->id,
'created_by' => $owner->id,
]);
Livewire::test('meetups.edit', ['meetup' => $meetup])->assertStatus(200);
});
it('aborts meetups.edit with 403 when authenticated user is not the creator', function () {
actingAsUser();
Livewire::test('meetups.edit', ['meetup' => $this->meetup])->assertStatus(200);
Livewire::test('meetups.edit', ['meetup' => $this->meetup])->assertStatus(403);
});
it('mounts meetups.create-edit-events for new event', function () {