Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ const pauseMetadata = {
function renderDetails(
metadata: Record<string, unknown>,
category: AuditLogDoc['category'] = 'ai',
action = 'automation.trigger.paused',
) {
const log: AuditLogDoc = {
_id: 'log-paused',
_creationTime: 1_700_000_000_000,
organizationId: 'org-1',
actorId: 'system',
actorType: 'system',
action: 'automation.trigger.paused',
action,
category,
resourceType: 'automation_trigger',
timestamp: 1_700_000_000_000,
Expand All @@ -53,6 +54,17 @@ function renderDetails(
);
}

describe('AuditLogTable action labels', () => {
it.each([
['governance_policy.created', 'Policy created'],
['governance_policy.updated', 'Policy updated'],
])('names a policy change (%s) in words', async (action, label) => {
renderDetails({}, 'security', action);
const dialog = await screen.findByRole('dialog');
expect(within(dialog).getAllByText(label).length).toBeGreaterThan(0);
});
});

describe('AuditLogTable metadata details', () => {
it('shows the paused schedule failure context and run reference', async () => {
renderDetails(pauseMetadata);
Expand Down
2 changes: 2 additions & 0 deletions services/platform/messages/de/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,8 @@ logs:
project.deleted: Projekt gelöscht
policy.created: Richtlinie erstellt
policy.updated: Richtlinie aktualisiert
governance_policy.created: Richtlinie erstellt
governance_policy.updated: Richtlinie aktualisiert
policy.retention_bounds_proposal_applied: Vorschlag zu Aufbewahrungsgrenzen angewendet
policy.retention_bounds_initial_applied: Aufbewahrungsgrenzen erstmalig angewendet
retention.run_completed: Aufbewahrungs-Run abgeschlossen
Expand Down
2 changes: 2 additions & 0 deletions services/platform/messages/en/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,8 @@ logs:
project.deleted: Project deleted
policy.created: Policy created
policy.updated: Policy updated
governance_policy.created: Policy created
governance_policy.updated: Policy updated
policy.retention_bounds_proposal_applied: Retention bounds proposal applied
policy.retention_bounds_initial_applied: Retention bounds initially applied
retention.run_completed: Retention run completed
Expand Down
2 changes: 2 additions & 0 deletions services/platform/messages/fr/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,8 @@ logs:
project.deleted: Projet supprimé
policy.created: Politique créée
policy.updated: Politique mise à jour
governance_policy.created: Politique créée
governance_policy.updated: Politique mise à jour
policy.retention_bounds_proposal_applied: Proposition de bornes de rétention appliquée
policy.retention_bounds_initial_applied: Bornes de rétention initialement appliquées
retention.run_completed: Cycle de rétention terminé
Expand Down