diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-27 15:06:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-27 15:06:07 +0300 |
commit | 45482d5a2704da7fabe4ccf07f85d9be6e0a791a (patch) | |
tree | 838353cda1b2a06a08799e852f3a7f338c715b44 /spec/frontend/sidebar/__snapshots__ | |
parent | 20450649ca3132e55aea60436fa6117ca6c1ae5f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/sidebar/__snapshots__')
-rw-r--r-- | spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap | 229 | ||||
-rw-r--r-- | spec/frontend/sidebar/__snapshots__/todo_spec.js.snap | 37 |
2 files changed, 266 insertions, 0 deletions
diff --git a/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap b/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap new file mode 100644 index 00000000000..32d67120183 --- /dev/null +++ b/spec/frontend/sidebar/__snapshots__/confidential_issue_sidebar_spec.js.snap @@ -0,0 +1,229 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Confidential Issue Sidebar Block renders for isConfidential = false and isEditable = false 1`] = ` +<div + class="block issuable-sidebar-item confidentiality" +> + <div + class="sidebar-collapsed-icon" + data-boundary="viewport" + data-container="body" + data-original-title="Not confidential" + data-placement="left" + title="" + > + <icon-stub + aria-hidden="true" + cssclasses="" + name="eye" + size="16" + /> + </div> + + <div + class="title hide-collapsed" + > + + Confidentiality + + <!----> + </div> + + <div + class="value sidebar-item-value hide-collapsed" + > + <!----> + + <div + class="no-value sidebar-item-value" + > + <icon-stub + aria-hidden="true" + class="sidebar-item-icon inline" + cssclasses="" + name="eye" + size="16" + /> + + Not confidential + + </div> + </div> +</div> +`; + +exports[`Confidential Issue Sidebar Block renders for isConfidential = false and isEditable = true 1`] = ` +<div + class="block issuable-sidebar-item confidentiality" +> + <div + class="sidebar-collapsed-icon" + data-boundary="viewport" + data-container="body" + data-original-title="Not confidential" + data-placement="left" + title="" + > + <icon-stub + aria-hidden="true" + cssclasses="" + name="eye" + size="16" + /> + </div> + + <div + class="title hide-collapsed" + > + + Confidentiality + + <a + class="float-right confidential-edit" + data-track-event="click_edit_button" + data-track-label="right_sidebar" + data-track-property="confidentiality" + href="#" + > + + Edit + + </a> + </div> + + <div + class="value sidebar-item-value hide-collapsed" + > + <!----> + + <div + class="no-value sidebar-item-value" + > + <icon-stub + aria-hidden="true" + class="sidebar-item-icon inline" + cssclasses="" + name="eye" + size="16" + /> + + Not confidential + + </div> + </div> +</div> +`; + +exports[`Confidential Issue Sidebar Block renders for isConfidential = true and isEditable = false 1`] = ` +<div + class="block issuable-sidebar-item confidentiality" +> + <div + class="sidebar-collapsed-icon" + data-boundary="viewport" + data-container="body" + data-original-title="Confidential" + data-placement="left" + title="" + > + <icon-stub + aria-hidden="true" + cssclasses="" + name="eye-slash" + size="16" + /> + </div> + + <div + class="title hide-collapsed" + > + + Confidentiality + + <!----> + </div> + + <div + class="value sidebar-item-value hide-collapsed" + > + <!----> + + <div + class="value sidebar-item-value hide-collapsed" + > + <icon-stub + aria-hidden="true" + class="sidebar-item-icon inline is-active" + cssclasses="" + name="eye-slash" + size="16" + /> + + This issue is confidential + + </div> + </div> +</div> +`; + +exports[`Confidential Issue Sidebar Block renders for isConfidential = true and isEditable = true 1`] = ` +<div + class="block issuable-sidebar-item confidentiality" +> + <div + class="sidebar-collapsed-icon" + data-boundary="viewport" + data-container="body" + data-original-title="Confidential" + data-placement="left" + title="" + > + <icon-stub + aria-hidden="true" + cssclasses="" + name="eye-slash" + size="16" + /> + </div> + + <div + class="title hide-collapsed" + > + + Confidentiality + + <a + class="float-right confidential-edit" + data-track-event="click_edit_button" + data-track-label="right_sidebar" + data-track-property="confidentiality" + href="#" + > + + Edit + + </a> + </div> + + <div + class="value sidebar-item-value hide-collapsed" + > + <!----> + + <div + class="value sidebar-item-value hide-collapsed" + > + <icon-stub + aria-hidden="true" + class="sidebar-item-icon inline is-active" + cssclasses="" + name="eye-slash" + size="16" + /> + + This issue is confidential + + </div> + </div> +</div> +`; diff --git a/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap b/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap new file mode 100644 index 00000000000..e680c917611 --- /dev/null +++ b/spec/frontend/sidebar/__snapshots__/todo_spec.js.snap @@ -0,0 +1,37 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`SidebarTodo template renders component container element with proper data attributes 1`] = ` +<button + aria-label="Mark as done" + class="btn btn-default btn-todo issuable-header-btn float-right" + data-boundary="viewport" + data-container="body" + data-issuable-id="1" + data-issuable-type="epic" + data-original-title="" + data-placement="left" + title="" + type="button" +> + <icon-stub + cssclasses="todo-undone" + name="todo-done" + size="16" + style="display: none;" + /> + + <span + class="issuable-todo-inner" + > + Mark as done + </span> + + <glloadingicon-stub + color="orange" + inline="true" + label="Loading" + size="sm" + style="display: none;" + /> +</button> +`; |