2021-01-12 12:10:49 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`MRWidgetAutoMergeEnabled when graphql is disabled template should have correct elements 1`] = `
|
|
|
|
<div
|
|
|
|
class="mr-widget-body media"
|
|
|
|
>
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-icon-stub
|
|
|
|
class="gl-text-blue-500 gl-mr-3 gl-mt-1"
|
|
|
|
name="status_scheduled"
|
|
|
|
size="24"
|
2021-01-12 12:10:49 +00:00
|
|
|
/>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="media-body"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="gl-display-flex"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="gl-mr-3"
|
|
|
|
>
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-sprintf-stub
|
|
|
|
data-testid="statusText"
|
|
|
|
message="Set by %{merge_author} to be merged automatically when the pipeline succeeds"
|
2021-01-12 12:10:49 +00:00
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-button-stub
|
|
|
|
buttontextclasses=""
|
|
|
|
category="primary"
|
|
|
|
class="js-cancel-auto-merge"
|
2021-05-18 15:10:46 +00:00
|
|
|
data-qa-selector="cancel_auto_merge_button"
|
2021-01-12 12:10:49 +00:00
|
|
|
data-testid="cancelAutomaticMergeButton"
|
2021-08-03 12:09:42 +00:00
|
|
|
icon=""
|
|
|
|
size="small"
|
|
|
|
variant="default"
|
2021-01-12 12:10:49 +00:00
|
|
|
>
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
Cancel auto-merge
|
2021-01-12 12:10:49 +00:00
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
</gl-button-stub>
|
2021-01-12 12:10:49 +00:00
|
|
|
</h4>
|
|
|
|
|
|
|
|
<section
|
|
|
|
class="mr-info-list"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="gl-display-flex"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="gl-mr-3"
|
|
|
|
>
|
|
|
|
The source branch will not be deleted
|
|
|
|
</span>
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-button-stub
|
|
|
|
buttontextclasses=""
|
|
|
|
category="primary"
|
|
|
|
class="js-remove-source-branch"
|
2021-01-12 12:10:49 +00:00
|
|
|
data-testid="removeSourceBranchButton"
|
2021-08-03 12:09:42 +00:00
|
|
|
icon=""
|
|
|
|
size="small"
|
|
|
|
variant="default"
|
2021-01-12 12:10:49 +00:00
|
|
|
>
|
|
|
|
|
|
|
|
Delete source branch
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
</gl-button-stub>
|
2021-01-12 12:10:49 +00:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MRWidgetAutoMergeEnabled when graphql is enabled template should have correct elements 1`] = `
|
|
|
|
<div
|
|
|
|
class="mr-widget-body media"
|
|
|
|
>
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-icon-stub
|
|
|
|
class="gl-text-blue-500 gl-mr-3 gl-mt-1"
|
|
|
|
name="status_scheduled"
|
|
|
|
size="24"
|
2021-01-12 12:10:49 +00:00
|
|
|
/>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="media-body"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="gl-display-flex"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="gl-mr-3"
|
|
|
|
>
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-sprintf-stub
|
|
|
|
data-testid="statusText"
|
|
|
|
message="Set by %{merge_author} to be merged automatically when the pipeline succeeds"
|
2021-01-12 12:10:49 +00:00
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-button-stub
|
|
|
|
buttontextclasses=""
|
|
|
|
category="primary"
|
|
|
|
class="js-cancel-auto-merge"
|
2021-05-18 15:10:46 +00:00
|
|
|
data-qa-selector="cancel_auto_merge_button"
|
2021-01-12 12:10:49 +00:00
|
|
|
data-testid="cancelAutomaticMergeButton"
|
2021-08-03 12:09:42 +00:00
|
|
|
icon=""
|
|
|
|
size="small"
|
|
|
|
variant="default"
|
2021-01-12 12:10:49 +00:00
|
|
|
>
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
Cancel auto-merge
|
2021-01-12 12:10:49 +00:00
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
</gl-button-stub>
|
2021-01-12 12:10:49 +00:00
|
|
|
</h4>
|
|
|
|
|
|
|
|
<section
|
|
|
|
class="mr-info-list"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="gl-display-flex"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="gl-mr-3"
|
|
|
|
>
|
|
|
|
The source branch will not be deleted
|
|
|
|
</span>
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
<gl-button-stub
|
|
|
|
buttontextclasses=""
|
|
|
|
category="primary"
|
|
|
|
class="js-remove-source-branch"
|
2021-01-12 12:10:49 +00:00
|
|
|
data-testid="removeSourceBranchButton"
|
2021-08-03 12:09:42 +00:00
|
|
|
icon=""
|
|
|
|
size="small"
|
|
|
|
variant="default"
|
2021-01-12 12:10:49 +00:00
|
|
|
>
|
|
|
|
|
|
|
|
Delete source branch
|
|
|
|
|
2021-08-03 12:09:42 +00:00
|
|
|
</gl-button-stub>
|
2021-01-12 12:10:49 +00:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|