]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA Replace CAYC occurrences with CaYC
authorAmbroise C <ambroise.christea@sonarsource.com>
Fri, 26 Jan 2024 14:52:47 +0000 (15:52 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 26 Jan 2024 20:02:46 +0000 (20:02 +0000)
server/sonar-web/src/main/js/api/mocks/QualityGatesServiceMock.ts
server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts
server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/QualityGate-it.tsx

index 8544f5bf76ce752fc3bfd4b2cb90e5f14b38c2d8..94bddf61150c0c4421c35c875a2d0e8b289fe798 100644 (file)
@@ -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' },
index 39750b27d3f6717907ffc48f3aea6414c0e4fa2b..87d5ae87ac4883f0abf9922871cbb7c03f0e34b0 100644 (file)
@@ -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();
index 21b2b260854aa545265884c3b7a927aee9eea793..a4196c179802e7fc102c5e9891c3cc3c6f64250c 100644 (file)
@@ -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;
 
index 8d1a1f6c840cd8717cfb75fea713c1daead06997..eb9a67bd80c2fbf2727d22df3353e7ecb790bc97 100644 (file)
@@ -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();