mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🗑️ Remove unused and outdated Blade views, refactor access restriction messages with Flux callout components, and update related Livewire tests for improved maintainability and UX.
This commit is contained in:
@@ -11,7 +11,7 @@ it('denies access to unauthorized users', function () {
|
||||
|
||||
Livewire::test('association.members.admin')
|
||||
->assertSet('isAllowed', false)
|
||||
->assertSee('Du bist nicht berechtigt, Mitglieder zu bearbeiten.');
|
||||
->assertSee('Mitglieder können nicht bearbeitet werden');
|
||||
});
|
||||
|
||||
it('grants access to authorized pubkeys', function () {
|
||||
|
||||
@@ -76,7 +76,7 @@ it('handles nostr logout', function () {
|
||||
it('denies access to create when not authenticated', function () {
|
||||
Livewire::test('association.project-support.form.create')
|
||||
->assertSet('isAllowed', false)
|
||||
->assertSee('Du bist nicht berechtigt, eine Projektförderung anzulegen.');
|
||||
->assertSee('Projektförderung kann nicht angelegt werden');
|
||||
});
|
||||
|
||||
it('denies access to create when pleb has not paid', function () {
|
||||
@@ -199,7 +199,7 @@ it('denies access to show when not authenticated', function () {
|
||||
|
||||
Livewire::test('association.project-support.show', ['project' => $project])
|
||||
->assertSet('isAllowed', false)
|
||||
->assertSee('Du bist nicht berechtigt, die Projektförderung einzusehen.');
|
||||
->assertSee('Zugriff auf Projektförderung nicht möglich');
|
||||
});
|
||||
|
||||
it('grants access to show when authenticated', function () {
|
||||
|
||||
Reference in New Issue
Block a user