]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20261 Fix FP test_as_project_admin
authorstanislavh <stanislav.honcharov@sonarsource.com>
Thu, 31 Aug 2023 11:09:16 +0000 (13:09 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 1 Sep 2023 20:03:03 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/common/ProjectKeyInput.tsx
server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/ProjectKeyInput-test.tsx.snap

index 509a2121c2a34d6a7388f081bd9ba4af8a803116..72f8dacc336b8da7bac2d3d98517f3b861bb3afb 100644 (file)
@@ -63,6 +63,7 @@ export default function ProjectKeyInput(props: ProjectKeyInputProps) {
       required={label !== undefined}
     >
       <input
+        name={label}
         autoFocus={autofocus}
         className={classNames('input-super-large', {
           'is-invalid': isInvalid,
index a0d05c68aafcc37a68c7f1e018c25f21a56bdaa7..d8e65b043edd42609849f80c85b0e5722536a1d4 100644 (file)
@@ -123,6 +123,7 @@ exports[`should render correctly: with label, help, and placeholder 1`] = `
     id="project-key"
     maxLength={400}
     minLength={1}
+    name="foo.label"
     onChange={[MockFunction]}
     placeholder="foo.placeholder"
     type="text"