Commit e121a34f authored by Mike Greiling's avatar Mike Greiling

Fix jest snapshots and broken tests

parent a42d2711
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CustomStageForm Editing a custom stage isSavingCustomStage=true displays a loading icon 1`] = ` exports[`CustomStageForm Editing a custom stage isSavingCustomStage=true displays a loading icon 1`] = `
"<button disabled=\\"disabled\\" type=\\"button\\" class=\\"js-save-stage btn btn-success\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" aria-hidden=\\"true\\" class=\\"gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span> "<button disabled=\\"disabled\\" type=\\"button\\" class=\\"js-save-stage btn btn-success\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" aria-hidden=\\"true\\" class=\\"align-text-bottom gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span>
Update stage Update stage
</button>" </button>"
`; `;
...@@ -53,7 +53,7 @@ exports[`CustomStageForm Start event with events selects events with canBeStartE ...@@ -53,7 +53,7 @@ exports[`CustomStageForm Start event with events selects events with canBeStartE
`; `;
exports[`CustomStageForm isSavingCustomStage=true displays a loading icon 1`] = ` exports[`CustomStageForm isSavingCustomStage=true displays a loading icon 1`] = `
"<button disabled=\\"disabled\\" type=\\"button\\" class=\\"js-save-stage btn btn-success\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" aria-hidden=\\"true\\" class=\\"gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span> "<button disabled=\\"disabled\\" type=\\"button\\" class=\\"js-save-stage btn btn-success\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" aria-hidden=\\"true\\" class=\\"align-text-bottom gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span>
Add stage Add stage
</button>" </button>"
`; `;
...@@ -29,7 +29,7 @@ describe('Environments', () => { ...@@ -29,7 +29,7 @@ describe('Environments', () => {
it('renders an empty state if no deployments are found', () => { it('renders an empty state if no deployments are found', () => {
const emptyState = wrapper.find(GlEmptyState); const emptyState = wrapper.find(GlEmptyState);
const emptyStateText = const emptyStateText =
'No deployments found Ensure your environment is part of the deploy stage of your CI pipeline to track deployments to your cluster. Learn more about deploying to a cluster'; 'No deployments found Ensure your environment is part of the deploy stage of your CI pipeline to track deployments to your cluster. Learn more about deploying to a cluster';
expect(emptyState.exists()).toBe(true); expect(emptyState.exists()).toBe(true);
expect(emptyState.text()).toEqual(emptyStateText); expect(emptyState.text()).toEqual(emptyStateText);
......
...@@ -30,6 +30,8 @@ exports[`Package code instruction single line to match the default snapshot 1`] ...@@ -30,6 +30,8 @@ exports[`Package code instruction single line to match the default snapshot 1`]
title="Copy npm install command" title="Copy npm install command"
type="button" type="button"
> >
<!---->
<svg <svg
class="gl-icon s16" class="gl-icon s16"
> >
......
...@@ -89,6 +89,8 @@ exports[`Registry Project Empty state to match the default snapshot 1`] = ` ...@@ -89,6 +89,8 @@ exports[`Registry Project Empty state to match the default snapshot 1`] = `
title="Copy login command" title="Copy login command"
type="button" type="button"
> >
<!---->
<svg <svg
class="gl-icon s16" class="gl-icon s16"
> >
...@@ -126,6 +128,8 @@ exports[`Registry Project Empty state to match the default snapshot 1`] = ` ...@@ -126,6 +128,8 @@ exports[`Registry Project Empty state to match the default snapshot 1`] = `
title="Copy build command" title="Copy build command"
type="button" type="button"
> >
<!---->
<svg <svg
class="gl-icon s16" class="gl-icon s16"
> >
...@@ -155,6 +159,8 @@ exports[`Registry Project Empty state to match the default snapshot 1`] = ` ...@@ -155,6 +159,8 @@ exports[`Registry Project Empty state to match the default snapshot 1`] = `
title="Copy push command" title="Copy push command"
type="button" type="button"
> >
<!---->
<svg <svg
class="gl-icon s16" class="gl-icon s16"
> >
......
...@@ -8,6 +8,8 @@ exports[`Expand button on click when short text is provided renders button after ...@@ -8,6 +8,8 @@ exports[`Expand button on click when short text is provided renders button after
style="display: none;" style="display: none;"
type="button" type="button"
> >
<!---->
<svg <svg
aria-hidden="true" aria-hidden="true"
class="s12 ic-ellipsis_h" class="s12 ic-ellipsis_h"
...@@ -32,6 +34,8 @@ exports[`Expand button on click when short text is provided renders button after ...@@ -32,6 +34,8 @@ exports[`Expand button on click when short text is provided renders button after
style="" style=""
type="button" type="button"
> >
<!---->
<svg <svg
aria-hidden="true" aria-hidden="true"
class="s12 ic-ellipsis_h" class="s12 ic-ellipsis_h"
...@@ -51,6 +55,8 @@ exports[`Expand button when short text is provided renders button before text 1` ...@@ -51,6 +55,8 @@ exports[`Expand button when short text is provided renders button before text 1`
class="btn js-text-expander-prepend text-expander btn-blank btn-secondary btn-md" class="btn js-text-expander-prepend text-expander btn-blank btn-secondary btn-md"
type="button" type="button"
> >
<!---->
<svg <svg
aria-hidden="true" aria-hidden="true"
class="s12 ic-ellipsis_h" class="s12 ic-ellipsis_h"
...@@ -75,6 +81,8 @@ exports[`Expand button when short text is provided renders button before text 1` ...@@ -75,6 +81,8 @@ exports[`Expand button when short text is provided renders button before text 1`
style="display: none;" style="display: none;"
type="button" type="button"
> >
<!---->
<svg <svg
aria-hidden="true" aria-hidden="true"
class="s12 ic-ellipsis_h" class="s12 ic-ellipsis_h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment