From fbdbdb7a1fea9f44c5f434cd22586ded6ec74e03 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 17 Dec 2019 16:58:04 +0100 Subject: [PATCH] SONAR-12632 Remove SonarCloud tutorial --- .../js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx | 5 ----- .../analyzeProject/__tests__/AnalyzeTutorial-test.tsx | 4 ---- .../__tests__/__snapshots__/AnalyzeTutorial-test.tsx.snap | 2 -- 3 files changed, 11 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx b/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx index d1f0b7412c9..e873d687706 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx +++ b/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/AnalyzeTutorial.tsx @@ -21,11 +21,9 @@ import * as React from 'react'; import { translate } from 'sonar-ui-common/helpers/l10n'; import InstanceMessage from '../../../components/common/InstanceMessage'; import { isVSTS } from '../../../helpers/almIntegrations'; -import { isSonarCloud } from '../../../helpers/system'; import ProjectAnalysisStep from '../components/ProjectAnalysisStep'; import TokenStep from '../components/TokenStep'; import '../styles.css'; -import AnalyzeTutorialSuggestion from './AnalyzeTutorialSuggestion'; export enum Steps { ANALYSIS, @@ -67,8 +65,6 @@ export default class AnalyzeTutorial extends React.PureComponent {

- {isSonarCloud() && } - {!isVSTS(almKey) && ( <> { component={component} displayRowLayout={true} open={step === Steps.ANALYSIS} - organization={isSonarCloud() ? component.organization : undefined} stepNumber={2} token={token} /> diff --git a/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorial-test.tsx b/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorial-test.tsx index 5a2fdfa6043..4c4344fe56a 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorial-test.tsx +++ b/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/AnalyzeTutorial-test.tsx @@ -21,10 +21,6 @@ import { shallow } from 'enzyme'; import * as React from 'react'; import AnalyzeTutorial from '../AnalyzeTutorial'; -jest.mock('../../../../helpers/system', () => ({ - isSonarCloud: jest.fn().mockReturnValue(true) -})); - Date.now = jest.fn().mockReturnValue(1540457859031); const component = { diff --git a/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/__snapshots__/AnalyzeTutorial-test.tsx.snap b/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/__snapshots__/AnalyzeTutorial-test.tsx.snap index a0296d11683..c4b2f7a3b43 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/__snapshots__/AnalyzeTutorial-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/tutorials/analyzeProject/__tests__/__snapshots__/AnalyzeTutorial-test.tsx.snap @@ -18,7 +18,6 @@ exports[`renders correctly 1`] = ` />

- -- 2.39.5