font-style: italic;
}
-label[for] {
- cursor: pointer;
-}
-
.form-field {
clear: both;
display: block;
'is-invalid': isInvalid,
'is-valid': isValid
})}
- id="organization-display-name"
+ id="organization-avatar"
onBlur={this.handleBlur}
onChange={this.handleChange}
onFocus={this.handleFocus}
return (
<ValidationInput
error={this.state.error}
- id="organization-display-name"
+ id="organization-description"
isInvalid={isInvalid}
isValid={isValid}
label={translate('onboarding.create_organization.description')}>
/>
<input
className="input-super-large text-middle"
- id="organization-display-name"
+ id="organization-avatar"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
/>
<input
className="input-super-large text-middle"
- id="organization-display-name"
+ id="organization-avatar"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
exports[`should render correctly 1`] = `
<ValidationInput
- id="organization-display-name"
+ id="organization-description"
isInvalid={false}
isValid={false}
label="onboarding.create_organization.description"
return (
<div className="form-field spacer-bottom">
<label htmlFor="select-organization">
- {translate('onboarding.create_project.organization')}
- <em className="mandatory">*</em>
+ <span className="text-middle">
+ <strong>{translate('onboarding.create_project.organization')}</strong>
+ <em className="mandatory">*</em>
+ </span>
</label>
<OrganizationSelect
hideIcons={!autoImport}
<label
htmlFor="select-organization"
>
- onboarding.create_project.organization
- <em
- className="mandatory"
+ <span
+ className="text-middle"
>
- *
- </em>
+ <strong>
+ onboarding.create_project.organization
+ </strong>
+ <em
+ className="mandatory"
+ >
+ *
+ </em>
+ </span>
</label>
<OrganizationSelect
hideIcons={true}
<Select
autoFocus={true}
clearable={false}
+ id="create-custom-measure-metric"
onChange={this.handleMetricSelect}
options={options}
value={this.state.metricKey}
<Select
autoFocus={true}
clearable={false}
+ id="create-custom-measure-metric"
onChange={[Function]}
options={
Array [
<div className="modal-field">
<label htmlFor="create-metric-domain">{translate('custom_metrics.domain')}</label>
<Creatable
+ id="create-metric-domain"
onChange={this.handleDomainChange}
options={domains.map(domain => ({ label: domain, value: domain }))}
value={this.state.domain}
</label>
<Select
clearable={false}
+ id="create-metric-type"
onChange={this.handleTypeChange}
options={this.props.types.map(type => ({
label: translate('metric.type', type),
custom_metrics.domain
</label>
<Creatable
+ id="create-metric-domain"
onChange={[Function]}
options={
Array [
</label>
<Select
clearable={false}
+ id="create-metric-type"
onChange={[Function]}
options={
Array [
</div>
);
- renderCheckbox = (field: keyof FormFields) => (
- <Checkbox checked={this.state[field] !== undefined} onCheck={this.handleFieldCheck(field)} />
+ renderCheckbox = (field: keyof FormFields, id?: string) => (
+ <Checkbox
+ checked={this.state[field] !== undefined}
+ id={id}
+ onCheck={this.handleFieldCheck(field)}
+ />
);
renderAffected = (affected: number) => (
renderNotificationsField = () => (
<div className="modal-field">
<label htmlFor="send-notifications">{translate('issue.send_notifications')}</label>
- {this.renderCheckbox('notifications')}
+ {this.renderCheckbox('notifications', 'send-notifications')}
</div>
);
</label>
<Checkbox
checked={false}
+ id="send-notifications"
onCheck={[Function]}
thirdState={false}
/>
{this.state.permissionTemplates && (
<Select
clearable={false}
+ id="project-permissions-template"
onChange={this.handlePermissionTemplateChange}
options={this.state.permissionTemplates.map(permissionTemplate => ({
label: permissionTemplate.name,
onConfirm={this.handleFormSubmit}>
{this.state.errorMessage && <Alert variant="error">{this.state.errorMessage}</Alert>}
<div className="modal-field">
- <label htmlFor="create-user-login">{translate('quality_gates.conditions.metric')}</label>
+ <label htmlFor="condition-metric">{translate('quality_gates.conditions.metric')}</label>
{metrics && <MetricSelect metrics={metrics} onMetricChange={this.handleMetricChange} />}
{this.props.metric && (
<span className="note">{getLocalizedMetricName(this.props.metric)}</span>
{metric && (
<>
<div className="modal-field">
- <label>{translate('quality_gates.conditions.operator')}</label>
+ <label htmlFor="condition-operator">
+ {translate('quality_gates.conditions.operator')}
+ </label>
<ConditionOperator
metric={metric}
onOperatorChange={this.handleOperatorChange}
/>
</div>
<div className="modal-field">
- <label>{translate('quality_gates.conditions.error')}</label>
+ <label htmlFor="condition-threshold">
+ {translate('quality_gates.conditions.error')}
+ </label>
<ThresholdInput
metric={metric}
name="error"
autoFocus={true}
className="input-medium"
clearable={false}
+ id="condition-operator"
name="operator"
onChange={this.handleChange}
options={operatorOptions}
return (
<Select
className="text-middle input-large"
+ id="condition-metric"
onChange={this.handleChange}
options={optionsWithDomains}
placeholder={translate('search.search_for_metrics')}
<Select
className="input-tiny text-middle"
clearable={true}
+ id="condition-threshold"
name={name}
onChange={this.handleSelectChange}
options={options}
<input
className="input-tiny text-middle"
data-type={metric.type}
+ id="condition-threshold"
name={name}
onChange={this.handleChange}
type="text"
</label>
<Select
clearable={false}
+ id="change-profile-parent"
name="parentKey"
onChange={this.handleSelectChange}
options={options}
</label>
<Select
clearable={false}
+ id="create-profile-language"
name="language"
onChange={this.handleLanguageChange}
options={languages.map(language => ({
<textarea
className="settings-large-input"
disabled={this.state.loading}
- id="test-email-title"
+ id="test-email-message"
onChange={this.onMessageChange}
required={true}
rows={5}