## Summary - add a shared cross-resource navigation layer with canonical navigation context and related-context rendering - wire findings, policy versions, baseline snapshots, backup sets, and canonical operations surfaces into consistent drill-down flows - extend focused Pest coverage for canonical operations links, related navigation, and tenant-context preservation ## Testing - focused Pest coverage for spec 131 was added and the task list marks the implementation verification and Pint steps as completed ## Follow-up - manual QA checklist item `T036` in `specs/131-cross-resource-navigation/tasks.md` is still open and should be completed during review Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #160
22 lines
721 B
PHP
22 lines
721 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Support\Navigation\RelatedActionLabelCatalog;
|
|
|
|
it('returns consistent entry and action labels', function (): void {
|
|
$catalog = new RelatedActionLabelCatalog;
|
|
|
|
expect($catalog->entryLabel('baseline_snapshot'))->toBe('Snapshot')
|
|
->and($catalog->actionLabel('baseline_snapshot'))->toBe('View snapshot')
|
|
->and($catalog->entryLabel('source_run'))->toBe('Run')
|
|
->and($catalog->actionLabel('operations'))->toBe('Open operations');
|
|
});
|
|
|
|
it('returns safe unavailable copy', function (): void {
|
|
$catalog = new RelatedActionLabelCatalog;
|
|
|
|
expect($catalog->unavailableMessage('parent_policy', 'unauthorized'))
|
|
->toContain('current scope');
|
|
});
|