mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-02-05 17:03:16 +00:00
🔒 Add #[Locked] attribute to Livewire components to enhance security against client-side state tampering
This commit is contained in:
@@ -294,9 +294,9 @@ it('does not show stale settled status when invoice check fails', function () {
|
||||
|
||||
NostrAuth::login($pleb->pubkey);
|
||||
|
||||
// With API failure, the component should show error status regardless of previous state
|
||||
// Locked properties prevent client-side tampering, so we verify the API failure handling directly
|
||||
Livewire::test('association.profile')
|
||||
->set('invoiceStatus', 'Settled')
|
||||
->set('invoiceStatusLabel', 'Bezahlt')
|
||||
->call('listenForPayment')
|
||||
->assertSet('invoiceStatus', null)
|
||||
->assertSet('invoiceStatusLabel', 'Status unbekannt')
|
||||
|
||||
Reference in New Issue
Block a user