]> source.dussan.org Git - sonarqube.git/commitdiff
SONARCLOUD-456 Update screenshot for marketing page
authorJeremy Davis <jeremy.davis@sonarsource.com>
Wed, 13 Mar 2019 09:59:27 +0000 (10:59 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 18 Mar 2019 19:20:58 +0000 (20:20 +0100)
server/sonar-web/public/images/sonarcloud/branch-02.png
server/sonar-web/public/images/sonarcloud/branch-02@2x.png
server/sonar-web/src/main/js/apps/about/sonarcloud/BranchAnalysis.tsx
server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/BranchAnalysis-test.tsx [new file with mode: 0644]
server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/__snapshots__/BranchAnalysis-test.tsx.snap [new file with mode: 0644]

index 93796eefc215dda5359303e66215b3790bcce0dd..90712f9994d571d09603b48992b2d5295d554285 100644 (file)
Binary files a/server/sonar-web/public/images/sonarcloud/branch-02.png and b/server/sonar-web/public/images/sonarcloud/branch-02.png differ
index 0073f2e2264e42d61051e907556059f410ffe3a5..276bafb1cf7d3510baa672daa28b82d524c1afcc 100644 (file)
Binary files a/server/sonar-web/public/images/sonarcloud/branch-02@2x.png and b/server/sonar-web/public/images/sonarcloud/branch-02@2x.png differ
index 1681713b0943cf69bda1abca521e324cff4dcb83..e0f5e54902a44e498f6960c94da68704a5054032 100644 (file)
@@ -90,7 +90,7 @@ export default function BranchAnalysis() {
               <img
                 alt=""
                 className="sc-branch-feature-left flex-0"
-                height="390"
+                height="432"
                 src={`${getBaseUrl()}/images/sonarcloud/branch-02.png`}
                 srcSet={`${getBaseUrl()}/images/sonarcloud/branch-02.png 1x, ${getBaseUrl()}/images/sonarcloud/branch-02@2x.png 2x`}
                 width="471"
diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/BranchAnalysis-test.tsx b/server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/BranchAnalysis-test.tsx
new file mode 100644 (file)
index 0000000..1d17953
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2019 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+import * as React from 'react';
+import { shallow } from 'enzyme';
+import BranchAnalysis from '../BranchAnalysis';
+import { waitAndUpdate } from '../../../../helpers/testUtils';
+
+// necessary to make the test run
+jest.mock('Docs/EmbedDocsSuggestions.json', () => {}, { virtual: true });
+
+beforeEach(() => {
+  jest.clearAllMocks();
+});
+
+it('should render', async () => {
+  const wrapper = shallow(<BranchAnalysis />);
+  await waitAndUpdate(wrapper);
+
+  expect(wrapper).toMatchSnapshot();
+});
diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/__snapshots__/BranchAnalysis-test.tsx.snap b/server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/__snapshots__/BranchAnalysis-test.tsx.snap
new file mode 100644 (file)
index 0000000..61dfa5d
--- /dev/null
@@ -0,0 +1,7 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`should render 1`] = `
+<withRouter(Connect(SQPageContainer))>
+  <Component />
+</withRouter(Connect(SQPageContainer))>
+`;