diff options
author | Kevin Silva <kevin.silva@sonarsource.com> | 2022-12-07 14:51:33 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-13 20:03:18 +0000 |
commit | cae72b1b49abfc394f56e0b5b8df860b669c6083 (patch) | |
tree | a59f449db1d0822f1e798929d3354b541e0ad658 /server/sonar-web/src/main/js/apps/projectBaseline | |
parent | 08db4d01505a2cc63664bbc3abaa38af7518e2e8 (diff) | |
download | sonarqube-cae72b1b49abfc394f56e0b5b8df860b669c6083.tar.gz sonarqube-cae72b1b49abfc394f56e0b5b8df860b669c6083.zip |
SONAR-17740 Add RTL test for 'project/create' bitbucket and gitlab pages and remove the enzyme tests
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectBaseline')
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/BaselineSettingDays.tsx b/server/sonar-web/src/main/js/apps/projectBaseline/components/BaselineSettingDays.tsx index b4fa182eca3..c982f37b95c 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/BaselineSettingDays.tsx +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/BaselineSettingDays.tsx @@ -53,7 +53,7 @@ export default function BaselineSettingDays(props: Props) { <ValidationInput error={undefined} - id="baseline_number_of_days" + labelHtmlFor="baseline_number_of_days" isInvalid={isChanged && !isValid} isValid={isChanged && isValid} label={translate('baseline.specify_days')} diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingDays-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingDays-test.tsx.snap index 5b8599e0aba..b8ac429ca80 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingDays-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingDays-test.tsx.snap @@ -13,10 +13,10 @@ exports[`should render correctly 1`] = ` </p> <MandatoryFieldsExplanation /> <ValidationInput - id="baseline_number_of_days" isInvalid={false} isValid={false} label="baseline.specify_days" + labelHtmlFor="baseline_number_of_days" required={true} > <input @@ -41,10 +41,10 @@ exports[`should render correctly 2`] = ` </p> <MandatoryFieldsExplanation /> <ValidationInput - id="baseline_number_of_days" isInvalid={false} isValid={true} label="baseline.specify_days" + labelHtmlFor="baseline_number_of_days" required={true} > <input @@ -69,10 +69,10 @@ exports[`should render correctly 3`] = ` </p> <MandatoryFieldsExplanation /> <ValidationInput - id="baseline_number_of_days" isInvalid={true} isValid={false} label="baseline.specify_days" + labelHtmlFor="baseline_number_of_days" required={true} > <input |