mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-18 20:34:52 +00:00
bf9654de87
- Updated `authorizeAccess` to restrict `meetups.edit` views and updates to users in "My-Meetups". - Attached creators to `meetup_user` pivot for default membership. - Adjusted related tests to validate membership-based edit permissions. 📱 **Improve sidebar and mobile navigation accessibility** - Added `aria-labels` to improve screen reader support for sidebar and mobile header elements. - Updated desktop and mobile user menus alignment for consistency. ⚡ **Enhance Lightning login flow** - Introduced `lightningLoginInProgress` for smoother polling synchronization with the redirect flow. - Updated logic to dispatch `lightning-login-ready` event instead of immediate redirect, avoiding race conditions.
33 lines
876 B
PHP
33 lines
876 B
PHP
<?php
|
|
|
|
use App\Models\City;
|
|
use App\Models\Country;
|
|
|
|
beforeEach(function () {
|
|
$country = Country::factory()->create(['code' => 'de']);
|
|
City::factory()->create(['country_id' => $country->id]);
|
|
});
|
|
|
|
it('renders the sidebar with the user profile reachable on mobile viewport', function () {
|
|
actingAsUser(['name' => 'Sidebar Tester']);
|
|
|
|
$page = visit('/de/dashboard');
|
|
|
|
$page->resize(390, 844)
|
|
->click('[aria-label="Menü öffnen"]')
|
|
->assertSee('Dashboard')
|
|
->assertSee('Repository')
|
|
->assertSee('Sidebar Tester');
|
|
});
|
|
|
|
it('renders the sidebar with the user profile on desktop viewport', function () {
|
|
actingAsUser(['name' => 'Sidebar Tester']);
|
|
|
|
$page = visit('/de/dashboard');
|
|
|
|
$page->resize(1280, 800)
|
|
->assertSee('Dashboard')
|
|
->assertSee('Repository')
|
|
->assertSee('Sidebar Tester');
|
|
});
|