summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap')
-rw-r--r--spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap88
1 files changed, 81 insertions, 7 deletions
diff --git a/spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap b/spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap
index 3a518029702..2abcc53bf14 100644
--- a/spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap
+++ b/spec/frontend/vue_shared/components/__snapshots__/expand_button_spec.js.snap
@@ -1,14 +1,88 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Expand button on click when short text is provided renders button after text 1`] = `
-"<span><button aria-label=\\"Click to expand text\\" type=\\"button\\" class=\\"btn js-text-expander-prepend text-expander btn-blank btn-secondary\\" style=\\"display: none;\\"><svg aria-hidden=\\"true\\" class=\\"s12 ic-ellipsis_h\\"><use xlink:href=\\"#ellipsis_h\\"></use></svg></button> <!----> <span><p>Expanded!</p></span> <button aria-label=\\"Click to expand text\\" type=\\"button\\" class=\\"btn js-text-expander-append text-expander btn-blank btn-secondary\\" style=\\"\\"><svg aria-hidden=\\"true\\" class=\\"s12 ic-ellipsis_h\\">
- <use xlink:href=\\"#ellipsis_h\\"></use>
- </svg></button></span>"
+<span>
+ <button
+ aria-label="Click to expand text"
+ class="btn js-text-expander-prepend text-expander btn-blank btn-secondary btn-md"
+ style="display: none;"
+ type="button"
+ >
+ <svg
+ aria-hidden="true"
+ class="s12 ic-ellipsis_h"
+ >
+ <use
+ xlink:href="#ellipsis_h"
+ />
+ </svg>
+ </button>
+
+ <!---->
+
+ <span>
+ <p>
+ Expanded!
+ </p>
+ </span>
+
+ <button
+ aria-label="Click to expand text"
+ class="btn js-text-expander-append text-expander btn-blank btn-secondary btn-md"
+ style=""
+ type="button"
+ >
+ <svg
+ aria-hidden="true"
+ class="s12 ic-ellipsis_h"
+ >
+ <use
+ xlink:href="#ellipsis_h"
+ />
+ </svg>
+ </button>
+</span>
`;
exports[`Expand button when short text is provided renders button before text 1`] = `
-"<span><button aria-label=\\"Click to expand text\\" type=\\"button\\" class=\\"btn js-text-expander-prepend text-expander btn-blank btn-secondary\\"><svg aria-hidden=\\"true\\" class=\\"s12 ic-ellipsis_h\\"><use xlink:href=\\"#ellipsis_h\\"></use></svg></button> <span><p>Short</p></span>
-<!----> <button aria-label=\\"Click to expand text\\" type=\\"button\\" class=\\"btn js-text-expander-append text-expander btn-blank btn-secondary\\" style=\\"display: none;\\"><svg aria-hidden=\\"true\\" class=\\"s12 ic-ellipsis_h\\">
- <use xlink:href=\\"#ellipsis_h\\"></use>
- </svg></button></span>"
+<span>
+ <button
+ aria-label="Click to expand text"
+ class="btn js-text-expander-prepend text-expander btn-blank btn-secondary btn-md"
+ type="button"
+ >
+ <svg
+ aria-hidden="true"
+ class="s12 ic-ellipsis_h"
+ >
+ <use
+ xlink:href="#ellipsis_h"
+ />
+ </svg>
+ </button>
+
+ <span>
+ <p>
+ Short
+ </p>
+ </span>
+
+ <!---->
+
+ <button
+ aria-label="Click to expand text"
+ class="btn js-text-expander-append text-expander btn-blank btn-secondary btn-md"
+ style="display: none;"
+ type="button"
+ >
+ <svg
+ aria-hidden="true"
+ class="s12 ic-ellipsis_h"
+ >
+ <use
+ xlink:href="#ellipsis_h"
+ />
+ </svg>
+ </button>
+</span>
`;