Merge branch '17426-plug-ins' refs #17426
[arvados-workbench2.git] / src / views-components / form-fields / project-form-fields.tsx
index 64386ea050f636d9eadddab6b8022e50842d2429..3f576ab180afe9e41547118b8fd7b5e5544776dd 100644 (file)
@@ -11,6 +11,7 @@ import { RootState } from "~/store/store";
 
 interface ProjectNameFieldProps {
     validate: Validator[];
+    label?: string;
 }
 
 // Validation behavior depends on the value of ForwardSlashNameSubstitution.
@@ -28,12 +29,12 @@ export const ProjectNameField = connect(
                 PROJECT_NAME_VALIDATION : PROJECT_NAME_VALIDATION_ALLOW_SLASH)
         };
     })((props: ProjectNameFieldProps) =>
-        <Field
+        <span data-cy='name-field'><Field
             name='name'
             component={TextField}
             validate={props.validate}
-            label="Project Name"
-            autoFocus={true} />
+            label={props.label || "Project Name"}
+            autoFocus={true} /></span>
     );
 
 export const ProjectDescriptionField = () =>