TenantAtlas/tests/Feature/Drift
ahmido 1c098441aa feat(spec-091): BackupSchedule lifecycle + create-CTA placement rule (#109)
Implements Spec 091 “BackupSchedule Retention & Lifecycle (Archive/Restore/Force Delete)”.

- BackupSchedule lifecycle:
  - Archive (soft delete) with confirmation; restores via Restore action; Force delete with confirmation and strict gating.
  - Force delete blocked when historical runs exist.
  - Archived schedules never dispatch/execute (dispatcher + job guard).
  - Audit events emitted for archive/restore/force delete.
  - RBAC UX semantics preserved (non-member hidden/404; member w/o capability disabled + server-side 403).

- Filament UX contract update:
  - Create CTA placement rule across create-enabled list pages:
    - Empty list: only large centered empty-state Create CTA.
    - Non-empty list: only header Create action.
  - Tests added/updated to enforce the rule.

Verification:
- `vendor/bin/sail bin pint --dirty`
- Focused tests: BackupScheduling + RBAC enforcement + EmptyState CTAs + Create CTA placement

Notes:
- Filament v5 / Livewire v4 compliant.
- Manual quickstart verification in `specs/091-backupschedule-retention-lifecycle/quickstart.md` remains to be checked (T031).

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #109
2026-02-14 13:46:06 +00:00
..
DriftAcknowledgeAuthorizationTest.php feat(spec-091): BackupSchedule lifecycle + create-CTA placement rule (#109) 2026-02-14 13:46:06 +00:00
DriftAcknowledgeTest.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
DriftAssignmentDriftDetectionTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftBaselineSelectionTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftBulkAcknowledgeAllMatchingConfirmationTest.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
DriftBulkAcknowledgeAllMatchingTest.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
DriftBulkAcknowledgeAuthorizationTest.php 066-rbac-ui-enforcement-helper (#81) 2026-01-30 16:58:02 +00:00
DriftBulkAcknowledgeTest.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
DriftCompletedRunWithZeroFindingsTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftEvidenceMinimizationTest.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
DriftFindingDetailShowsAssignmentsDiffTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftFindingDetailShowsScopeTagsDiffTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftFindingDetailShowsSettingsDiffTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftFindingDetailTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftGenerationDeterminismTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftGenerationDispatchTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftHasherTest.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
DriftLandingShowsComparisonInfoTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftPolicySnapshotDriftDetectionTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftPolicySnapshotMetadataOnlyDoesNotCreateFindingTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftScopeTagDriftDetectionTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftScopeTagLegacyDefaultDoesNotCreateFindingTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
DriftTenantIsolationTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
GenerateDriftFindingsJobNotificationTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00