Ver código fonte

NO-JIRA Replace CAYC occurrences with CaYC

tags/10.4.0.87286
Ambroise C 4 meses atrás
pai
commit
45de496294

+ 1
- 1
server/sonar-web/src/main/js/api/mocks/QualityGatesServiceMock.ts Ver arquivo

@@ -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' },

+ 1
- 1
server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts Ver arquivo

@@ -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();

+ 1
- 1
server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts Ver arquivo

@@ -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;


+ 8
- 8
server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/QualityGate-it.tsx Ver arquivo

@@ -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();

Carregando…
Cancelar
Salvar