From: Jeremy Davis Date: Wed, 13 Mar 2019 09:59:27 +0000 (+0100) Subject: SONARCLOUD-456 Update screenshot for marketing page X-Git-Tag: 7.7~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6349a677ee3d656260ad75b6ef5a3f19d74c2bf;p=sonarqube.git SONARCLOUD-456 Update screenshot for marketing page --- diff --git a/server/sonar-web/public/images/sonarcloud/branch-02.png b/server/sonar-web/public/images/sonarcloud/branch-02.png index 93796eefc21..90712f9994d 100644 Binary files a/server/sonar-web/public/images/sonarcloud/branch-02.png and b/server/sonar-web/public/images/sonarcloud/branch-02.png differ diff --git a/server/sonar-web/public/images/sonarcloud/branch-02@2x.png b/server/sonar-web/public/images/sonarcloud/branch-02@2x.png index 0073f2e2264..276bafb1cf7 100644 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 diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/BranchAnalysis.tsx b/server/sonar-web/src/main/js/apps/about/sonarcloud/BranchAnalysis.tsx index 1681713b094..e0f5e54902a 100644 --- a/server/sonar-web/src/main/js/apps/about/sonarcloud/BranchAnalysis.tsx +++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/BranchAnalysis.tsx @@ -90,7 +90,7 @@ export default function BranchAnalysis() { {}, { virtual: true }); + +beforeEach(() => { + jest.clearAllMocks(); +}); + +it('should render', async () => { + const wrapper = shallow(); + 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 index 00000000000..61dfa5de642 --- /dev/null +++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/__tests__/__snapshots__/BranchAnalysis-test.tsx.snap @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should render 1`] = ` + + + +`;