Commit e456c7a0 authored by Mark Florian's avatar Mark Florian

Update additional snapshots

Fixes tests broken by
https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/2698.
parent 7d67f69d
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
exports[`StreamEmptyState should render correctly 1`] = ` exports[`StreamEmptyState should render correctly 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
class="gl-mt-5" class="gl-mt-5"
invertindarkmode="true"
svgheight="72" svgheight="72"
svgpath="mock/path" svgpath="mock/path"
title="Setup streaming for audit events" title="Setup streaming for audit events"
......
...@@ -4,6 +4,7 @@ exports[`DependenciesApp component on creation given the dependency list job has ...@@ -4,6 +4,7 @@ exports[`DependenciesApp component on creation given the dependency list job has
Object { Object {
"compact": false, "compact": false,
"description": null, "description": null,
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -18,6 +19,7 @@ exports[`DependenciesApp component on creation given there are no dependencies d ...@@ -18,6 +19,7 @@ exports[`DependenciesApp component on creation given there are no dependencies d
Object { Object {
"compact": false, "compact": false,
"description": null, "description": null,
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
......
...@@ -82,6 +82,7 @@ exports[`dashboard should match the snapshot 1`] = ` ...@@ -82,6 +82,7 @@ exports[`dashboard should match the snapshot 1`] = `
class="gl-mt-3" class="gl-mt-3"
> >
<gl-empty-state-stub <gl-empty-state-stub
invertindarkmode="true"
svgpath="/assets/illustrations/operations-dashboard_empty.svg" svgpath="/assets/illustrations/operations-dashboard_empty.svg"
title="Add a project to the dashboard" title="Add a project to the dashboard"
/> />
......
...@@ -12,7 +12,7 @@ exports[`EmptyState renders properly 1`] = ` ...@@ -12,7 +12,7 @@ exports[`EmptyState renders properly 1`] = `
> >
<img <img
alt="" alt=""
class="gl-max-w-full" class="gl-max-w-full gl-dark-invert-keep-hue"
role="img" role="img"
src="/empty/state/svg/path" src="/empty/state/svg/path"
/> />
......
...@@ -101,7 +101,7 @@ describe('On-call schedule wrapper', () => { ...@@ -101,7 +101,7 @@ describe('On-call schedule wrapper', () => {
const emptyState = findEmptyState(); const emptyState = findEmptyState();
expect(emptyState.exists()).toBe(true); expect(emptyState.exists()).toBe(true);
expect(emptyState.attributes()).toEqual({ expect(emptyState.attributes()).toMatchObject({
title: i18n.emptyState.title, title: i18n.emptyState.title,
svgpath: emptyOncallSchedulesSvgPath, svgpath: emptyOncallSchedulesSvgPath,
description: i18n.emptyState.description, description: i18n.emptyState.description,
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
exports[`Project compliance framework empty state it matches the snapshot when "addFrameworkPath" is a string path 1`] = ` exports[`Project compliance framework empty state it matches the snapshot when "addFrameworkPath" is a string path 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
compact="true" compact="true"
invertindarkmode="true"
primarybuttonlink="/edit-group" primarybuttonlink="/edit-group"
primarybuttontext="Add framework in group-name" primarybuttontext="Add framework in group-name"
svgheight="100" svgheight="100"
...@@ -26,6 +27,7 @@ exports[`Project compliance framework empty state it matches the snapshot when " ...@@ -26,6 +27,7 @@ exports[`Project compliance framework empty state it matches the snapshot when "
exports[`Project compliance framework empty state it matches the snapshot when "addFrameworkPath" is undefined 1`] = ` exports[`Project compliance framework empty state it matches the snapshot when "addFrameworkPath" is undefined 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
compact="true" compact="true"
invertindarkmode="true"
svgheight="100" svgheight="100"
svgpath="/image.svg" svgpath="/image.svg"
> >
......
...@@ -4,6 +4,7 @@ exports[`LoadingError component with error code 401 empty state has correct prop ...@@ -4,6 +4,7 @@ exports[`LoadingError component with error code 401 empty state has correct prop
Object { Object {
"compact": false, "compact": false,
"description": "Security reports can only be accessed by authorized users.", "description": "Security reports can only be accessed by authorized users.",
"invertInDarkMode": true,
"primaryButtonLink": "/users/sign_in", "primaryButtonLink": "/users/sign_in",
"primaryButtonText": "Sign in", "primaryButtonText": "Sign in",
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -18,6 +19,7 @@ exports[`LoadingError component with error code 403 empty state has correct prop ...@@ -18,6 +19,7 @@ exports[`LoadingError component with error code 403 empty state has correct prop
Object { Object {
"compact": false, "compact": false,
"description": "Security reports can only be accessed by authorized users.", "description": "Security reports can only be accessed by authorized users.",
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
exports[`dashboard has no vulnerabilities empty state matches snapshot 1`] = ` exports[`dashboard has no vulnerabilities empty state matches snapshot 1`] = `
"<section class=\\"gl-display-flex gl-mt-0 empty-state gl-text-center gl-flex-direction-column\\"> "<section class=\\"gl-display-flex gl-mt-0 empty-state gl-text-center gl-flex-direction-column\\">
<div class=\\"gl-max-w-full\\"> <div class=\\"gl-max-w-full\\">
<div class=\\"svg-250 svg-content\\"><img src=\\"/placeholder.svg\\" alt=\\"\\" role=\\"img\\" class=\\"gl-max-w-full\\"></div> <div class=\\"svg-250 svg-content\\"><img src=\\"/placeholder.svg\\" alt=\\"\\" role=\\"img\\" class=\\"gl-max-w-full gl-dark-invert-keep-hue\\"></div>
</div> </div>
<div class=\\"gl-max-w-full gl-m-auto\\"> <div class=\\"gl-max-w-full gl-m-auto\\">
<div class=\\"gl-mx-auto gl-my-0 gl-p-5\\"> <div class=\\"gl-mx-auto gl-my-0 gl-p-5\\">
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Group report not configured component matches snapshot 1`] = `"<gl-empty-state-stub title=\\"Monitor vulnerabilities in your group\\" svgpath=\\"/placeholder.svg\\" description=\\"Manage and track vulnerabilities identified in projects within your group. Vulnerabilities in projects are shown here when security testing is configured.\\" secondarybuttonlink=\\"/path/to/dashboard/documentation\\" secondarybuttontext=\\"Learn more\\"></gl-empty-state-stub>"`; exports[`Group report not configured component matches snapshot 1`] = `"<gl-empty-state-stub title=\\"Monitor vulnerabilities in your group\\" svgpath=\\"/placeholder.svg\\" description=\\"Manage and track vulnerabilities identified in projects within your group. Vulnerabilities in projects are shown here when security testing is configured.\\" secondarybuttonlink=\\"/path/to/dashboard/documentation\\" secondarybuttontext=\\"Learn more\\" invertindarkmode=\\"true\\"></gl-empty-state-stub>"`;
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Instance report not configured component matches snapshot 1`] = `"<gl-empty-state-stub title=\\"Monitor vulnerabilities in all of your projects\\" svgpath=\\"/placeholder.svg\\" description=\\"Manage and track vulnerabilities identified in your selected projects. Vulnerabilities for selected projects with security testing configured are shown here.\\" primarybuttonlink=\\"/path/to/dashboard/settings\\" primarybuttontext=\\"Add projects\\" secondarybuttonlink=\\"/path/to/dashboard/documentation\\" secondarybuttontext=\\"Learn more\\"></gl-empty-state-stub>"`; exports[`Instance report not configured component matches snapshot 1`] = `"<gl-empty-state-stub title=\\"Monitor vulnerabilities in all of your projects\\" svgpath=\\"/placeholder.svg\\" description=\\"Manage and track vulnerabilities identified in your selected projects. Vulnerabilities for selected projects with security testing configured are shown here.\\" primarybuttonlink=\\"/path/to/dashboard/settings\\" primarybuttontext=\\"Add projects\\" secondarybuttonlink=\\"/path/to/dashboard/documentation\\" secondarybuttontext=\\"Learn more\\" invertindarkmode=\\"true\\"></gl-empty-state-stub>"`;
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
exports[`Operational report not configured component matches the snapshot for groups 1`] = ` exports[`Operational report not configured component matches the snapshot for groups 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
description="Manage and track vulnerabilities identified in your Kubernetes clusters. Vulnerabilities appear here after you create a scan execution policy in any project in this group." description="Manage and track vulnerabilities identified in your Kubernetes clusters. Vulnerabilities appear here after you create a scan execution policy in any project in this group."
invertindarkmode="true"
primarybuttonlink="/operational-configuration" primarybuttonlink="/operational-configuration"
primarybuttontext="" primarybuttontext=""
secondarybuttonlink="/operational-help" secondarybuttonlink="/operational-help"
...@@ -15,6 +16,7 @@ exports[`Operational report not configured component matches the snapshot for gr ...@@ -15,6 +16,7 @@ exports[`Operational report not configured component matches the snapshot for gr
exports[`Operational report not configured component matches the snapshot for instances 1`] = ` exports[`Operational report not configured component matches the snapshot for instances 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
description="Manage and track vulnerabilities identified in your Kubernetes clusters. Vulnerabilities appear here after you create a scan execution policy in any project in this instance." description="Manage and track vulnerabilities identified in your Kubernetes clusters. Vulnerabilities appear here after you create a scan execution policy in any project in this instance."
invertindarkmode="true"
primarybuttonlink="/operational-configuration" primarybuttonlink="/operational-configuration"
primarybuttontext="" primarybuttontext=""
secondarybuttonlink="/operational-help" secondarybuttonlink="/operational-help"
...@@ -27,6 +29,7 @@ exports[`Operational report not configured component matches the snapshot for in ...@@ -27,6 +29,7 @@ exports[`Operational report not configured component matches the snapshot for in
exports[`Operational report not configured component matches the snapshot for projects 1`] = ` exports[`Operational report not configured component matches the snapshot for projects 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
description="Manage and track vulnerabilities identified in your Kubernetes clusters. Vulnerabilities appear here after you create a scan execution policy in this project." description="Manage and track vulnerabilities identified in your Kubernetes clusters. Vulnerabilities appear here after you create a scan execution policy in this project."
invertindarkmode="true"
primarybuttonlink="/operational-configuration" primarybuttonlink="/operational-configuration"
primarybuttontext="Create policy" primarybuttontext="Create policy"
secondarybuttonlink="/operational-help" secondarybuttonlink="/operational-help"
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Project report not configured component matches snapshot 1`] = `"<gl-empty-state-stub title=\\"Monitor vulnerabilities in your project\\" svgpath=\\"/placeholder.svg\\" description=\\"Manage and track vulnerabilities identified in your project. Vulnerabilities are shown here when security testing is configured.\\" primarybuttonlink=\\"/configuration\\" primarybuttontext=\\"Configure security testing\\" secondarybuttonlink=\\"/help\\" secondarybuttontext=\\"Learn more\\"></gl-empty-state-stub>"`; exports[`Project report not configured component matches snapshot 1`] = `"<gl-empty-state-stub title=\\"Monitor vulnerabilities in your project\\" svgpath=\\"/placeholder.svg\\" description=\\"Manage and track vulnerabilities identified in your project. Vulnerabilities are shown here when security testing is configured.\\" primarybuttonlink=\\"/configuration\\" primarybuttontext=\\"Configure security testing\\" secondarybuttonlink=\\"/help\\" secondarybuttontext=\\"Learn more\\" invertindarkmode=\\"true\\"></gl-empty-state-stub>"`;
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
exports[`NoEnvironmentEmptyState component default state matches the snapshot 1`] = ` exports[`NoEnvironmentEmptyState component default state matches the snapshot 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
invertindarkmode="true"
svgpath="/svgs" svgpath="/svgs"
title="No environments detected" title="No environments detected"
> >
......
...@@ -45,7 +45,7 @@ exports[`Security Dashboard error states has unavailable pages 1`] = ` ...@@ -45,7 +45,7 @@ exports[`Security Dashboard error states has unavailable pages 1`] = `
> >
<img <img
alt="" alt=""
class="gl-max-w-full" class="gl-max-w-full gl-dark-invert-keep-hue"
role="img" role="img"
src="/test/empty_state.svg" src="/test/empty_state.svg"
/> />
......
...@@ -6,6 +6,7 @@ exports[`EmptyState shows gettingStarted state 1`] = ` ...@@ -6,6 +6,7 @@ exports[`EmptyState shows gettingStarted state 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
description="Stay updated about the performance and health of your environment by configuring Prometheus to monitor your deployments." description="Stay updated about the performance and health of your environment by configuring Prometheus to monitor your deployments."
invertindarkmode="true"
primarybuttonlink="/clustersPath" primarybuttonlink="/clustersPath"
primarybuttontext="Install on clusters" primarybuttontext="Install on clusters"
secondarybuttonlink="/settingsPath" secondarybuttonlink="/settingsPath"
...@@ -22,6 +23,7 @@ exports[`EmptyState shows noData state 1`] = ` ...@@ -22,6 +23,7 @@ exports[`EmptyState shows noData state 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
description="You are connected to the Prometheus server, but there is currently no data to display." description="You are connected to the Prometheus server, but there is currently no data to display."
invertindarkmode="true"
primarybuttonlink="/settingsPath" primarybuttonlink="/settingsPath"
primarybuttontext="Configure Prometheus" primarybuttontext="Configure Prometheus"
secondarybuttonlink="" secondarybuttonlink=""
...@@ -38,6 +40,7 @@ exports[`EmptyState shows unableToConnect state 1`] = ` ...@@ -38,6 +40,7 @@ exports[`EmptyState shows unableToConnect state 1`] = `
<gl-empty-state-stub <gl-empty-state-stub
description="Ensure connectivity is available from the GitLab server to the Prometheus server" description="Ensure connectivity is available from the GitLab server to the Prometheus server"
invertindarkmode="true"
primarybuttonlink="/documentationPath" primarybuttonlink="/documentationPath"
primarybuttontext="View documentation" primarybuttontext="View documentation"
secondarybuttonlink="/settingsPath" secondarybuttonlink="/settingsPath"
......
...@@ -4,6 +4,7 @@ exports[`GroupEmptyState given state BAD_QUERY passes the expected props to GlEm ...@@ -4,6 +4,7 @@ exports[`GroupEmptyState given state BAD_QUERY passes the expected props to GlEm
Object { Object {
"compact": true, "compact": true,
"description": null, "description": null,
"invertInDarkMode": true,
"primaryButtonLink": "/path/to/settings", "primaryButtonLink": "/path/to/settings",
"primaryButtonText": "Verify configuration", "primaryButtonText": "Verify configuration",
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -31,6 +32,7 @@ exports[`GroupEmptyState given state CONNECTION_FAILED passes the expected props ...@@ -31,6 +32,7 @@ exports[`GroupEmptyState given state CONNECTION_FAILED passes the expected props
Object { Object {
"compact": true, "compact": true,
"description": "We couldn't reach the Prometheus server. Either the server no longer exists or the configuration details need updating.", "description": "We couldn't reach the Prometheus server. Either the server no longer exists or the configuration details need updating.",
"invertInDarkMode": true,
"primaryButtonLink": "/path/to/settings", "primaryButtonLink": "/path/to/settings",
"primaryButtonText": "Verify configuration", "primaryButtonText": "Verify configuration",
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -47,6 +49,7 @@ exports[`GroupEmptyState given state FOO STATE passes the expected props to GlEm ...@@ -47,6 +49,7 @@ exports[`GroupEmptyState given state FOO STATE passes the expected props to GlEm
Object { Object {
"compact": true, "compact": true,
"description": "An error occurred while loading the data. Please try again.", "description": "An error occurred while loading the data. Please try again.",
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -63,6 +66,7 @@ exports[`GroupEmptyState given state LOADING passes the expected props to GlEmpt ...@@ -63,6 +66,7 @@ exports[`GroupEmptyState given state LOADING passes the expected props to GlEmpt
Object { Object {
"compact": true, "compact": true,
"description": "Creating graphs uses the data from the Prometheus server. If this takes a long time, ensure that data is available.", "description": "Creating graphs uses the data from the Prometheus server. If this takes a long time, ensure that data is available.",
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -79,6 +83,7 @@ exports[`GroupEmptyState given state NO_DATA passes the expected props to GlEmpt ...@@ -79,6 +83,7 @@ exports[`GroupEmptyState given state NO_DATA passes the expected props to GlEmpt
Object { Object {
"compact": true, "compact": true,
"description": null, "description": null,
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -106,6 +111,7 @@ exports[`GroupEmptyState given state TIMEOUT passes the expected props to GlEmpt ...@@ -106,6 +111,7 @@ exports[`GroupEmptyState given state TIMEOUT passes the expected props to GlEmpt
Object { Object {
"compact": true, "compact": true,
"description": null, "description": null,
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
...@@ -133,6 +139,7 @@ exports[`GroupEmptyState given state UNKNOWN_ERROR passes the expected props to ...@@ -133,6 +139,7 @@ exports[`GroupEmptyState given state UNKNOWN_ERROR passes the expected props to
Object { Object {
"compact": true, "compact": true,
"description": "An error occurred while loading the data. Please try again.", "description": "An error occurred while loading the data. Please try again.",
"invertInDarkMode": true,
"primaryButtonLink": null, "primaryButtonLink": null,
"primaryButtonText": null, "primaryButtonText": null,
"secondaryButtonLink": null, "secondaryButtonLink": null,
......
...@@ -21,7 +21,7 @@ exports[`packages_list_app renders 1`] = ` ...@@ -21,7 +21,7 @@ exports[`packages_list_app renders 1`] = `
> >
<img <img
alt="" alt=""
class="gl-max-w-full" class="gl-max-w-full gl-dark-invert-keep-hue"
role="img" role="img"
src="helpSvg" src="helpSvg"
/> />
......
...@@ -21,7 +21,7 @@ exports[`PackagesListApp renders 1`] = ` ...@@ -21,7 +21,7 @@ exports[`PackagesListApp renders 1`] = `
> >
<img <img
alt="" alt=""
class="gl-max-w-full" class="gl-max-w-full gl-dark-invert-keep-hue"
role="img" role="img"
src="emptyListIllustration" src="emptyListIllustration"
/> />
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
exports[`EmptyStateComponent should render content 1`] = ` exports[`EmptyStateComponent should render content 1`] = `
"<section class=\\"gl-display-flex empty-state gl-text-center gl-flex-direction-column\\"> "<section class=\\"gl-display-flex empty-state gl-text-center gl-flex-direction-column\\">
<div class=\\"gl-max-w-full\\"> <div class=\\"gl-max-w-full\\">
<div class=\\"svg-250 svg-content\\"><img src=\\"/image.svg\\" alt=\\"\\" role=\\"img\\" class=\\"gl-max-w-full\\"></div> <div class=\\"svg-250 svg-content\\"><img src=\\"/image.svg\\" alt=\\"\\" role=\\"img\\" class=\\"gl-max-w-full gl-dark-invert-keep-hue\\"></div>
</div> </div>
<div class=\\"gl-max-w-full gl-m-auto\\"> <div class=\\"gl-max-w-full gl-m-auto\\">
<div class=\\"gl-mx-auto gl-my-0 gl-p-5\\"> <div class=\\"gl-mx-auto gl-my-0 gl-p-5\\">
......
...@@ -42,7 +42,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = ` ...@@ -42,7 +42,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = `
<gl-accordion-item-stub <gl-accordion-item-stub
class="gl-font-weight-normal" class="gl-font-weight-normal"
title="More Details" title="More Details"
title-visible="Less Details" titlevisible="Less Details"
> >
<p <p
class="gl-pt-2" class="gl-pt-2"
...@@ -76,7 +76,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = ` ...@@ -76,7 +76,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = `
<gl-accordion-item-stub <gl-accordion-item-stub
class="gl-font-weight-normal" class="gl-font-weight-normal"
title="More Details" title="More Details"
title-visible="Less Details" titlevisible="Less Details"
> >
<p <p
class="gl-pt-2" class="gl-pt-2"
...@@ -110,7 +110,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = ` ...@@ -110,7 +110,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = `
<gl-accordion-item-stub <gl-accordion-item-stub
class="gl-font-weight-normal" class="gl-font-weight-normal"
title="More Details" title="More Details"
title-visible="Less Details" titlevisible="Less Details"
> >
<p <p
class="gl-pt-2" class="gl-pt-2"
...@@ -144,7 +144,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = ` ...@@ -144,7 +144,7 @@ exports[`RunnerAwsDeploymentsModal renders the modal 1`] = `
<gl-accordion-item-stub <gl-accordion-item-stub
class="gl-font-weight-normal" class="gl-font-weight-normal"
title="More Details" title="More Details"
title-visible="Less Details" titlevisible="Less Details"
> >
<p <p
class="gl-pt-2" class="gl-pt-2"
......
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