Skip to content

Commit

Permalink
Merge pull request #278 from intuitem/rename_audit
Browse files Browse the repository at this point in the history
Rename audit
  • Loading branch information
ab-smith authored Apr 18, 2024
2 parents 208783c + 0447f6e commit ae73da5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
10 changes: 5 additions & 5 deletions frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"addRiskAssessment": "Add risk assessment",
"addRiskScenario": "Add risk scenario",
"addRiskAcceptance": "Add risk acceptance",
"addComplianceAssessment": "Add compliance assessment",
"addComplianceAssessment": "Start Audit",
"addEvidence": "Add evidence",
"addDomain": "Add domain",
"addProject": "Add project",
Expand All @@ -22,7 +22,7 @@
"associatedRiskAssessments": "Associated risk assessments",
"associatedRiskScenarios": "Associated risk scenarios",
"associatedRiskAcceptances": "Associated risk acceptances",
"associatedComplianceAssessments": "Associated compliance assessments",
"associatedComplianceAssessments": "Associated Audits",
"associatedEvidences": "Associated evidences",
"associatedDomains": "Associated domains",
"associatedProjects": "Associated projects",
Expand Down Expand Up @@ -52,8 +52,8 @@
"riskScenario": "Risk scenario",
"riskAcceptances": "Risk acceptances",
"riskAcceptance": "Risk acceptance",
"complianceAssessments": "Compliance assessments",
"complianceAssessment": "Compliance assessment",
"complianceAssessments": "Audits",
"complianceAssessment": "Audit",
"evidences": "Evidences",
"evidence": "Evidence",
"frameworks": "Frameworks",
Expand Down Expand Up @@ -482,7 +482,7 @@
"usedRiskMatrices": "Used risk matrices",
"usedFrameworks": "Used frameworks",
"riskAssessmentsStatus": "Risk assessments status",
"complianceAssessmentsStatus": "Compliance assessments status",
"complianceAssessmentsStatus": "Audits status",
"noDescription": "No description",
"noExistingControls": "No existing controls",
"noJustification": "No justification",
Expand Down
12 changes: 6 additions & 6 deletions frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"addRiskAssessment": "Ajouter une évaluation de risque",
"addRiskScenario": "Ajouter un scénario de risque",
"addRiskAcceptance": "Ajouter une acceptation de risque",
"addComplianceAssessment": "Ajouter une évaluation de conformité",
"addComplianceAssessment": "Démarrer l'audit",
"addEvidence": "Ajouter une preuve",
"addDomain": "Ajouter un domaine",
"addProject": "Ajouter un projet",
Expand All @@ -22,7 +22,7 @@
"associatedRiskAssessments": "Évaluations de risque associées",
"associatedRiskScenarios": "Scénarios de risque associés",
"associatedRiskAcceptances": "Acceptations de risque associées",
"associatedComplianceAssessments": "Évaluations de conformité associées",
"associatedComplianceAssessments": "Audits associés",
"associatedEvidences": "Preuves associées",
"associatedDomains": "Domaines associés",
"associatedProjects": "Projets associés",
Expand Down Expand Up @@ -52,8 +52,8 @@
"riskScenario": "Scénario de risque",
"riskAcceptances": "Acceptations de risque",
"riskAcceptance": "Acceptation de risque",
"complianceAssessments": "Évaluations de conformité",
"complianceAssessment": "Évaluation de conformité",
"complianceAssessments": "Audits",
"complianceAssessment": "Audit",
"evidences": "Preuves",
"evidence": "Preuve",
"frameworks": "Cadres de référence",
Expand Down Expand Up @@ -367,7 +367,7 @@
"extraLarge": "Très grand",
"rid": "RID",
"scope": "Périmètre",
"auditor": "Auditeur",
"auditor": "Auditor",
"lastUpdate": "Dernière mise à jour",
"riskScenarioAssetHelpText": "Biens sensibles impactés par ce scénario de risque",
"riskScenarioMeasureHelpText": "Les mesures appliquées existantes pour gérer ce risque",
Expand Down Expand Up @@ -482,7 +482,7 @@
"usedRiskMatrices": "Matrices de risque utilisées",
"usedFrameworks": "Cadres de référence utilisés",
"riskAssessmentsStatus": "Statut des évaluations de risque",
"complianceAssessmentsStatus": "Statut des évaluations de conformité",
"complianceAssessmentsStatus": "Statut des audits",
"noDescription": "Pas de description",
"noExistingControls": "Aucune mesure existante",
"noJustification": "Aucune justification",
Expand Down
8 changes: 4 additions & 4 deletions frontend/tests/functional/user-permissions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ Object.entries(userGroups).forEach(([userGroup, userGroupData]) => {

Object.entries(testObjectsData).forEach(([objectPage, objectData], index) => {
test.describe(`${objectData.displayName.toLowerCase()} permissions`, () => {
const userCanView = userFromUserGroupHasPermission(userGroup, 'view', objectData.displayName);
const userCanCreate = userFromUserGroupHasPermission(userGroup, 'add', objectData.displayName);
const userCanUpdate = userFromUserGroupHasPermission(userGroup, 'change', objectData.displayName);
const userCanDelete = userFromUserGroupHasPermission(userGroup, 'delete', objectData.displayName);
const userCanView = userFromUserGroupHasPermission(userGroup, 'view', objectData.permName ?? objectData.displayName);
const userCanCreate = userFromUserGroupHasPermission(userGroup, 'add', objectData.permName ?? objectData.displayName);
const userCanUpdate = userFromUserGroupHasPermission(userGroup, 'change', objectData.permName ?? objectData.displayName);
const userCanDelete = userFromUserGroupHasPermission(userGroup, 'delete', objectData.permName ?? objectData.displayName);

test.beforeAll(async ({pages}) => {
await pages[objectPage].goto();
Expand Down
5 changes: 3 additions & 2 deletions frontend/tests/utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const test = base.extend<Fixtures>({
},

complianceAssessmentsPage: async ({ page }, use) => {
const aPage = new PageContent(page, '/compliance-assessments', 'Compliance assessments', [
const aPage = new PageContent(page, '/compliance-assessments', 'Audits', [
{ name: 'name', type: type.TEXT },
{ name: 'description', type: type.TEXT },
{ name: 'project', type: type.SELECT_AUTOCOMPLETE },
Expand Down Expand Up @@ -469,7 +469,8 @@ export class TestContent {
}
},
complianceAssessmentsPage: {
displayName: 'Compliance assessments',
displayName: 'Audits',
permName: 'complianceassessment',
dependency: vars.framework,
build: {
name: vars.assessmentName,
Expand Down

0 comments on commit ae73da5

Please sign in to comment.