From: Ambroise C Date: Fri, 26 Jan 2024 14:52:47 +0000 (+0100) Subject: NO-JIRA Replace CAYC occurrences with CaYC X-Git-Tag: 10.4.0.87286~110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45de4962943a13eb3ad0076bac574e9a2996640a;p=sonarqube.git NO-JIRA Replace CAYC occurrences with CaYC --- diff --git a/server/sonar-web/src/main/js/api/mocks/QualityGatesServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/QualityGatesServiceMock.ts index 8544f5bf76c..94bddf61150 100644 --- a/server/sonar-web/src/main/js/api/mocks/QualityGatesServiceMock.ts +++ b/server/sonar-web/src/main/js/api/mocks/QualityGatesServiceMock.ts @@ -206,7 +206,7 @@ export class QualityGatesServiceMock { caycStatus: CaycStatus.Compliant, }), mockQualityGate({ - name: 'Over Compliant CAYC QG', + name: 'Over Compliant CaYC QG', conditions: [ { id: 'deprecatedoc', metric: 'function_complexity', op: 'LT', error: '1' }, { id: 'AXJMbIUHPAOIsUIE3eOFoc', metric: 'new_coverage', op: 'LT', error: '80' }, diff --git a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts index 39750b27d3f..87d5ae87ac4 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts +++ b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts @@ -464,7 +464,7 @@ describe('Rule app details', () => { expect(ui.caycNotificationButton.query()).not.toBeInTheDocument(); }); - it('should show CAYC notification for rule advanced section and removes it when user scrolls to the principles', async () => { + it('should show CaYC notification for rule advanced section and removes it when user scrolls to the principles', async () => { const { ui, user } = getPageObjects(); renderCodingRulesApp(mockLoggedInUser(), 'coding_rules?open=rule10'); await ui.detailsloaded(); diff --git a/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts b/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts index 21b2b260854..a4196c17980 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts +++ b/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts @@ -85,7 +85,7 @@ describe('groupAndSortByPriorityConditions', () => { MetricKey.new_duplicated_lines_density, ]; - it('should return grouped conditions by overall/new code and sort them by CAYC order', () => { + it('should return grouped conditions by overall/new code and sort them by CaYC order', () => { const result = groupAndSortByPriorityConditions(conditions, METRICS, true); const conditionsMap = ({ metric }: Condition) => metric; diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/QualityGate-it.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/QualityGate-it.tsx index 8d1a1f6c840..eb9a67bd80c 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/QualityGate-it.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/QualityGate-it.tsx @@ -134,7 +134,7 @@ it('should be able to create a quality gate then delete it', async () => { }); }); -it('should be able to copy a quality gate which is CAYC compliant', async () => { +it('should be able to copy a quality gate which is CaYC compliant', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp(); @@ -154,7 +154,7 @@ it('should be able to copy a quality gate which is CAYC compliant', async () => expect(await screen.findByRole('button', { name: /.* bis/ })).toBeInTheDocument(); }); -it('should not be able to copy a quality gate which is not CAYC compliant', async () => { +it('should not be able to copy a quality gate which is not CaYC compliant', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp(); @@ -183,7 +183,7 @@ it('should be able to rename a quality gate', async () => { expect(await screen.findByRole('button', { name: /New Name.*/ })).toBeInTheDocument(); }); -it('should not be able to set as default a quality gate which is not CAYC compliant', async () => { +it('should not be able to set as default a quality gate which is not CaYC compliant', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp(); @@ -195,7 +195,7 @@ it('should not be able to set as default a quality gate which is not CAYC compli expect(setAsDefaultButton).toBeDisabled(); }); -it('should be able to set as default a quality gate which is CAYC compliant', async () => { +it('should be able to set as default a quality gate which is CaYC compliant', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp(); @@ -335,7 +335,7 @@ it('should explain condition on branch', async () => { ).toBeInTheDocument(); }); -it('should show warning banner when CAYC condition is not properly set and should be able to update them', async () => { +it('should show warning banner when CaYC condition is not properly set and should be able to update them', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp(); @@ -382,7 +382,7 @@ it('should show warning banner when CAYC condition is not properly set and shoul expect(overallConditionsWrapper.getByText('Complexity / Function')).toBeInTheDocument(); }); -it('should show optimize banner when CAYC condition is not properly set and QG is compliant and should be able to update them', async () => { +it('should show optimize banner when CaYC condition is not properly set and QG is compliant and should be able to update them', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp(); @@ -420,7 +420,7 @@ it('should show optimize banner when CAYC condition is not properly set and QG i ); }); -it('should not warn user when quality gate is not CAYC compliant and user has no permission to edit it', async () => { +it('should not warn user when quality gate is not CaYC compliant and user has no permission to edit it', async () => { const user = userEvent.setup(); renderQualityGateApp(); @@ -446,7 +446,7 @@ it('should not show optimize banner when quality gate is compliant but non-CaYC expect(screen.queryByText('quality_gates.cayc.tooltip.message')).not.toBeInTheDocument(); }); -it('should warn user when quality gate is not CAYC compliant and user has permission to edit it', async () => { +it('should warn user when quality gate is not CaYC compliant and user has permission to edit it', async () => { const user = userEvent.setup(); qualityGateHandler.setIsAdmin(true); renderQualityGateApp();