mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
🔥 **Cleanup:** Removed BookCase and OrangePill models, factories, migrations, and related references. Added tests for new service and meetup creation flows. Updated PHPUnit settings and browser-specific configurations.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use App\Models\City;
|
||||
use App\Models\Country;
|
||||
use App\Models\Lecturer;
|
||||
use App\Models\Meetup;
|
||||
use App\Models\SelfHostedService;
|
||||
use App\Models\Venue;
|
||||
|
||||
beforeEach(function () {
|
||||
$country = Country::factory()->create(['code' => 'de']);
|
||||
$city = City::factory()->create(['country_id' => $country->id]);
|
||||
Venue::factory()->create(['city_id' => $city->id]);
|
||||
Meetup::factory()->create(['city_id' => $city->id, 'visible_on_map' => true]);
|
||||
Lecturer::factory()->create();
|
||||
SelfHostedService::factory()->create();
|
||||
});
|
||||
|
||||
it('loads all listed public pages without console errors or JS errors', function () {
|
||||
$pages = visit([
|
||||
'/welcome',
|
||||
'/login',
|
||||
'/register',
|
||||
'/forgot-password',
|
||||
'/de/meetups',
|
||||
'/de/courses',
|
||||
'/de/lecturers',
|
||||
'/de/cities',
|
||||
'/de/venues',
|
||||
'/de/services',
|
||||
]);
|
||||
|
||||
$pages->assertNoSmoke();
|
||||
});
|
||||
Reference in New Issue
Block a user