summaryrefslogtreecommitdiff
path: root/spec/frontend/snippets/components/__snapshots__
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/snippets/components/__snapshots__')
-rw-r--r--spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap2
-rw-r--r--spec/frontend/snippets/components/__snapshots__/snippet_description_edit_spec.js.snap82
-rw-r--r--spec/frontend/snippets/components/__snapshots__/snippet_description_view_spec.js.snap2
3 files changed, 64 insertions, 22 deletions
diff --git a/spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap b/spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap
index 301ec5652a9..959bc24eef6 100644
--- a/spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap
+++ b/spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap
@@ -12,7 +12,7 @@ exports[`Snippet Blob Edit component rendering matches the snapshot 1`] = `
class="file-holder snippet"
>
<blob-header-edit-stub
- data-qa-selector="snippet_file_name"
+ data-qa-selector="file_name_field"
value="lorem.txt"
/>
diff --git a/spec/frontend/snippets/components/__snapshots__/snippet_description_edit_spec.js.snap b/spec/frontend/snippets/components/__snapshots__/snippet_description_edit_spec.js.snap
index 9fd4cba5b87..297ad16b681 100644
--- a/spec/frontend/snippets/components/__snapshots__/snippet_description_edit_spec.js.snap
+++ b/spec/frontend/snippets/components/__snapshots__/snippet_description_edit_spec.js.snap
@@ -4,7 +4,9 @@ exports[`Snippet Description Edit component rendering matches the snapshot 1`] =
<div
class="form-group js-description-input"
>
- <label>
+ <label
+ for="snippet-description"
+ >
Description (optional)
</label>
@@ -21,27 +23,67 @@ exports[`Snippet Description Edit component rendering matches the snapshot 1`] =
/>
</div>
- <markdown-field-stub
- addspacingclasses="true"
- canattachfile="true"
- class="js-expanded"
- enableautocomplete="true"
- helppagepath=""
- markdowndocspath="help/"
- markdownpreviewpath="foo/"
- note="[object Object]"
- quickactionsdocspath=""
- textareavalue=""
+ <div
+ class="js-vue-markdown-field md-area position-relative js-expanded gfm-form"
>
- <textarea
- aria-label="Description"
- class="note-textarea js-gfm-input js-autosize markdown-area"
- data-qa-selector="snippet_description_field"
- data-supports-quick-actions="false"
- dir="auto"
- placeholder="Write a comment or drag your files here…"
+ <markdown-header-stub
+ linecontent=""
/>
- </markdown-field-stub>
+
+ <div
+ class="md-write-holder"
+ >
+ <div
+ class="zen-backdrop div-dropzone-wrapper"
+ >
+ <div
+ class="div-dropzone js-invalid-dropzone"
+ >
+ <textarea
+ aria-label="Description"
+ class="note-textarea js-gfm-input js-autosize markdown-area"
+ data-qa-selector="snippet_description_field"
+ data-supports-quick-actions="false"
+ dir="auto"
+ id="snippet-description"
+ placeholder="Write a comment or drag your files here…"
+ style="overflow-x: hidden; word-wrap: break-word; overflow-y: hidden;"
+ />
+ <div
+ class="div-dropzone-hover"
+ >
+ <i
+ class="fa fa-paperclip div-dropzone-icon"
+ />
+ </div>
+ </div>
+
+ <a
+ aria-label="Leave zen mode"
+ class="zen-control zen-control-leave js-zen-leave gl-text-gray-700"
+ href="#"
+ >
+ <icon-stub
+ name="screen-normal"
+ size="16"
+ />
+ </a>
+
+ <markdown-toolbar-stub
+ canattachfile="true"
+ markdowndocspath="help/"
+ quickactionsdocspath=""
+ />
+ </div>
+ </div>
+
+ <div
+ class="js-vue-md-preview md md-preview-holder"
+ style="display: none;"
+ />
+
+ <!---->
+ </div>
</div>
</div>
`;
diff --git a/spec/frontend/snippets/components/__snapshots__/snippet_description_view_spec.js.snap b/spec/frontend/snippets/components/__snapshots__/snippet_description_view_spec.js.snap
index 9ebc4e81baf..9fb43815cbc 100644
--- a/spec/frontend/snippets/components/__snapshots__/snippet_description_view_spec.js.snap
+++ b/spec/frontend/snippets/components/__snapshots__/snippet_description_view_spec.js.snap
@@ -3,7 +3,7 @@
exports[`Snippet Description component matches the snapshot 1`] = `
<markdown-field-view-stub
class="snippet-description"
- data-qa-selector="snippet_description_field"
+ data-qa-selector="snippet_description_content"
>
<div
class="md js-snippet-description"