mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-06-22 22:50:24 +00:00
1cd70cc15e
- Removed unused `copyRelayUrl` and `copyWatchtowerUrl` methods in `Profile` Livewire component. - Updated storage details in `association.profile` and `association.benefits` views with size and file limits. - Enhanced `BenefitsTest` to validate new storage capacity information.
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
|
|
use App\Models\EinundzwanzigPleb;
|
|
use App\Support\NostrAuth;
|
|
use Livewire\Livewire;
|
|
|
|
it('shows the locked state with all four services for guests', function () {
|
|
Livewire::test('association.benefits')
|
|
->assertSet('currentYearIsPaid', false)
|
|
->assertSee('Dienste gesperrt')
|
|
->assertSee('Blossom-Medienserver')
|
|
->assertSee('5 GB Speicher')
|
|
->assertSee('max. 1 GB pro Datei')
|
|
->assertDontSee('https://blossom.einundzwanzig.space');
|
|
});
|
|
|
|
it('unlocks the blossom server for active paid members', function () {
|
|
$pleb = EinundzwanzigPleb::factory()->active()->withPaidCurrentYear()->create();
|
|
NostrAuth::login($pleb->pubkey);
|
|
|
|
Livewire::test('association.benefits')
|
|
->assertSet('currentYearIsPaid', true)
|
|
->assertSee('Mitgliedschaft aktiv')
|
|
->assertSee('Blossom Medienserver')
|
|
->assertSee('https://blossom.einundzwanzig.space');
|
|
});
|
|
|
|
it('copies the blossom url for active members', function () {
|
|
$pleb = EinundzwanzigPleb::factory()->active()->withPaidCurrentYear()->create();
|
|
NostrAuth::login($pleb->pubkey);
|
|
|
|
Livewire::test('association.benefits')
|
|
->call('copyBlossomUrl')
|
|
->assertHasNoErrors();
|
|
});
|