From: Jeremy Davis Date: Tue, 17 Sep 2019 16:42:55 +0000 (+0200) Subject: Add ITs for the new UI X-Git-Tag: 8.0~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=140bc11dd6ce86d6a612a2eb305202f8f27151f0;p=sonarqube.git Add ITs for the new UI --- diff --git a/server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx b/server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx index 1b7d8e7230e..9e49d3d752f 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx @@ -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: ( - + {translate('learn_more')} - + ) }} /> diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap index 4739b1f5050..d2d5d3eaf4a 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap @@ -29,11 +29,13 @@ exports[`should render correctly 1`] = ` id="settings.new_code_period.description" values={ Object { - "link": learn_more - , + , } } />