219 lines
4.5 KiB
Text
219 lines
4.5 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Repository last commit component renders commit widget 1`] = `
|
|
<div
|
|
class="info-well d-none d-sm-flex project-last-commit commit p-3"
|
|
>
|
|
<user-avatar-link-stub
|
|
class="avatar-cell"
|
|
imgalt=""
|
|
imgcssclasses=""
|
|
imgsize="40"
|
|
imgsrc="https://test.com"
|
|
linkhref="/test"
|
|
tooltipplacement="top"
|
|
tooltiptext=""
|
|
username=""
|
|
/>
|
|
|
|
<div
|
|
class="commit-detail flex-list"
|
|
>
|
|
<div
|
|
class="commit-content qa-commit-content"
|
|
>
|
|
<gl-link-stub
|
|
class="commit-row-message item-title"
|
|
href="/commit/123"
|
|
>
|
|
Commit title
|
|
</gl-link-stub>
|
|
|
|
<!---->
|
|
|
|
<div
|
|
class="committer"
|
|
>
|
|
<gl-link-stub
|
|
class="commit-author-link js-user-link"
|
|
href="/test"
|
|
>
|
|
|
|
Test
|
|
|
|
</gl-link-stub>
|
|
|
|
authored
|
|
|
|
<timeago-tooltip-stub
|
|
cssclass=""
|
|
time="2019-01-01"
|
|
tooltipplacement="bottom"
|
|
/>
|
|
</div>
|
|
|
|
<!---->
|
|
</div>
|
|
|
|
<div
|
|
class="commit-actions flex-row"
|
|
>
|
|
<!---->
|
|
|
|
<div
|
|
class="ci-status-link"
|
|
>
|
|
<gl-link-stub
|
|
class="js-commit-pipeline"
|
|
href="https://test.com/pipeline"
|
|
title="Pipeline: failed"
|
|
>
|
|
<ci-icon-stub
|
|
aria-label="Pipeline: failed"
|
|
cssclasses=""
|
|
size="24"
|
|
status="[object Object]"
|
|
/>
|
|
</gl-link-stub>
|
|
</div>
|
|
|
|
<gl-button-group-stub
|
|
class="gl-ml-4 js-commit-sha-group"
|
|
>
|
|
<gl-button-stub
|
|
buttontextclasses=""
|
|
category="primary"
|
|
class="gl-font-monospace"
|
|
data-testid="last-commit-id-label"
|
|
icon=""
|
|
label="true"
|
|
size="medium"
|
|
variant="default"
|
|
>
|
|
12345678
|
|
</gl-button-stub>
|
|
|
|
<clipboard-button-stub
|
|
category="secondary"
|
|
class="input-group-text"
|
|
size="medium"
|
|
text="123456789"
|
|
title="Copy commit SHA"
|
|
tooltipplacement="top"
|
|
/>
|
|
</gl-button-group-stub>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`Repository last commit component renders the signature HTML as returned by the backend 1`] = `
|
|
<div
|
|
class="info-well d-none d-sm-flex project-last-commit commit p-3"
|
|
>
|
|
<user-avatar-link-stub
|
|
class="avatar-cell"
|
|
imgalt=""
|
|
imgcssclasses=""
|
|
imgsize="40"
|
|
imgsrc="https://test.com"
|
|
linkhref="/test"
|
|
tooltipplacement="top"
|
|
tooltiptext=""
|
|
username=""
|
|
/>
|
|
|
|
<div
|
|
class="commit-detail flex-list"
|
|
>
|
|
<div
|
|
class="commit-content qa-commit-content"
|
|
>
|
|
<gl-link-stub
|
|
class="commit-row-message item-title"
|
|
href="/commit/123"
|
|
>
|
|
Commit title
|
|
</gl-link-stub>
|
|
|
|
<!---->
|
|
|
|
<div
|
|
class="committer"
|
|
>
|
|
<gl-link-stub
|
|
class="commit-author-link js-user-link"
|
|
href="/test"
|
|
>
|
|
|
|
Test
|
|
|
|
</gl-link-stub>
|
|
|
|
authored
|
|
|
|
<timeago-tooltip-stub
|
|
cssclass=""
|
|
time="2019-01-01"
|
|
tooltipplacement="bottom"
|
|
/>
|
|
</div>
|
|
|
|
<!---->
|
|
</div>
|
|
|
|
<div
|
|
class="commit-actions flex-row"
|
|
>
|
|
<div>
|
|
<button>
|
|
Verified
|
|
</button>
|
|
</div>
|
|
|
|
<div
|
|
class="ci-status-link"
|
|
>
|
|
<gl-link-stub
|
|
class="js-commit-pipeline"
|
|
href="https://test.com/pipeline"
|
|
title="Pipeline: failed"
|
|
>
|
|
<ci-icon-stub
|
|
aria-label="Pipeline: failed"
|
|
cssclasses=""
|
|
size="24"
|
|
status="[object Object]"
|
|
/>
|
|
</gl-link-stub>
|
|
</div>
|
|
|
|
<gl-button-group-stub
|
|
class="gl-ml-4 js-commit-sha-group"
|
|
>
|
|
<gl-button-stub
|
|
buttontextclasses=""
|
|
category="primary"
|
|
class="gl-font-monospace"
|
|
data-testid="last-commit-id-label"
|
|
icon=""
|
|
label="true"
|
|
size="medium"
|
|
variant="default"
|
|
>
|
|
12345678
|
|
</gl-button-stub>
|
|
|
|
<clipboard-button-stub
|
|
category="secondary"
|
|
class="input-group-text"
|
|
size="medium"
|
|
text="123456789"
|
|
title="Copy commit SHA"
|
|
tooltipplacement="top"
|
|
/>
|
|
</gl-button-group-stub>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|