]> source.dussan.org Git - sonarqube.git/commitdiff
Add ITs for the new UI
authorJeremy Davis <jeremy.davis@sonarsource.com>
Tue, 17 Sep 2019 16:42:55 +0000 (18:42 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 24 Sep 2019 18:21:18 +0000 (20:21 +0200)
server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx
server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap

index 1b7d8e7230e3956fcedd3ced91173db03a35b2fe..9e49d3d752f954534366952787fc3bbaa50d6897 100644 (file)
@@ -19,6 +19,7 @@
  */
 import * as React from 'react';
 import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
 import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/controls/buttons';
 import AlertSuccessIcon from 'sonar-ui-common/components/icons/AlertSuccessIcon';
 import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
@@ -158,9 +159,9 @@ export default class NewCodePeriod extends React.PureComponent<{}, State> {
                       id="settings.new_code_period.description"
                       values={{
                         link: (
-                          <a href="/documentation/user-guide/fixing-the-water-leak/">
+                          <Link to="/documentation/project-administration/new-code-period/">
                             {translate('learn_more')}
-                          </a>
+                          </Link>
                         )
                       }}
                     />
index 4739b1f50501328e647bcd816a68af02b176f0c2..d2d5d3eaf4a851179c4391b6ff955bff3699e5c5 100644 (file)
@@ -29,11 +29,13 @@ exports[`should render correctly 1`] = `
                 id="settings.new_code_period.description"
                 values={
                   Object {
-                    "link": <a
-                      href="/documentation/user-guide/fixing-the-water-leak/"
+                    "link": <Link
+                      onlyActiveOnIndex={false}
+                      style={Object {}}
+                      to="/documentation/project-administration/new-code-period/"
                     >
                       learn_more
-                    </a>,
+                    </Link>,
                   }
                 }
               />