`;
exports[`should render optional fields correctly 1`] = `
-<div>
- <header
- className="page-header"
- >
- <h1
- className="page-title"
- >
- settings.pr_decoration.binding.title
- </h1>
- </header>
- <div
- className="markdown small spacer-top big-spacer-bottom"
- >
- settings.pr_decoration.binding.description
- </div>
- <form
- onSubmit={[Function]}
- >
- <div
- className="form-field"
- >
- <label
- htmlFor="name"
- >
- settings.pr_decoration.binding.form.name
- <em
- className="mandatory spacer-right"
- >
- *
- </em>
- </label>
- <Select
- autosize={true}
- className="abs-width-400"
- clearable={false}
- id="name"
- menuContainerStyle={
- Object {
- "maxWidth": "210%",
- "width": "auto",
- }
- }
- onChange={[Function]}
- optionRenderer={[Function]}
- options={
- Array [
- Object {
- "alm": "gitlab",
- "key": "key",
- "url": "http://example.com",
- },
- ]
- }
- searchable={false}
- value="key"
- valueKey="key"
- valueRenderer={[Function]}
+<label
+ className="display-flex-center"
+ htmlFor="github.summary_comment_setting"
+>
+ settings.pr_decoration.binding.form.github.summary_comment_setting
+ <HelpTooltip
+ className="spacer-left"
+ overlay={
+ <FormattedMessage
+ defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
+ id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
+ values={Object {}}
/>
- </div>
- <div
- className="form-field"
- >
- <label
- className="display-flex-center"
- htmlFor="gitlab.repository"
- >
- settings.pr_decoration.binding.form.gitlab.repository
- <HelpTooltip
- className="spacer-left"
- overlay={
- <FormattedMessage
- defaultMessage="settings.pr_decoration.binding.form.gitlab.repository.help"
- id="settings.pr_decoration.binding.form.gitlab.repository.help"
- values={Object {}}
- />
- }
- placement="right"
- />
- </label>
- <input
- className="input-super-large"
- id="gitlab.repository"
- maxLength={256}
- name="gitlab.repository"
- onChange={[Function]}
- type="text"
- value=""
- />
- </div>
- <div
- className="display-flex-center"
- >
- <DeferredSpinner
- className="spacer-right"
- loading={false}
- timeout={100}
- />
- <SubmitButton
- className="spacer-right button-success"
- disabled={true}
- >
- <span
- data-test="project-settings__alm-save"
- >
- save
- </span>
- </SubmitButton>
- </div>
- </form>
-</div>
+ }
+ placement="right"
+ />
+</label>
`;
exports[`should render select options correctly 1`] = `
settings.pr_decoration.binding.form.bitbucket.slug=Repository SLUG
settings.pr_decoration.binding.form.bitbucket.slug.help=The Repository Slug is part of your Bitbucket Server repository URL. Example: ({example})
settings.pr_decoration.binding.form.gitlab.repository=Project ID
-settings.pr_decoration.binding.form.gitlab.repository.help=If you are using GitLab CI, you do not have to provide this value. For any other CI, provide the project's numerical ID.
property.category.general=General
property.category.general.email=Email