diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-24 06:09:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-24 06:09:36 +0300 |
commit | c37c3ec359084406ca67e175ef66b8c186db6636 (patch) | |
tree | 00c44866e2c85834482de851b3da49eafbcb222a /spec/frontend/monitoring | |
parent | 0cfa77ee9ac952f50bb0adce18261730ecc476ed (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/monitoring')
-rw-r--r-- | spec/frontend/monitoring/components/dashboard_spec.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/frontend/monitoring/components/dashboard_spec.js b/spec/frontend/monitoring/components/dashboard_spec.js index 1f995965003..d7f1d4873bb 100644 --- a/spec/frontend/monitoring/components/dashboard_spec.js +++ b/spec/frontend/monitoring/components/dashboard_spec.js @@ -6,7 +6,6 @@ import { TEST_HOST } from 'helpers/test_constants'; import { mountExtended, shallowMountExtended } from 'helpers/vue_test_utils_helper'; import { createAlert } from '~/alert'; import axios from '~/lib/utils/axios_utils'; -import { ESC_KEY } from '~/lib/utils/keys'; import { objectToQuery } from '~/lib/utils/url_utility'; import Dashboard from '~/monitoring/components/dashboard.vue'; import DashboardHeader from '~/monitoring/components/dashboard_header.vue'; @@ -479,8 +478,6 @@ describe('Dashboard', () => { let group; let panel; - const mockKeyup = (key) => window.dispatchEvent(new KeyboardEvent('keyup', { key })); - const MockPanel = { template: `<div><slot name="top-left"/></div>`, }; @@ -531,14 +528,6 @@ describe('Dashboard', () => { undefined, ); }); - - it('restores dashboard from full screen by typing the Escape key', () => { - mockKeyup(ESC_KEY); - expect(store.dispatch).toHaveBeenCalledWith( - `monitoringDashboard/clearExpandedPanel`, - undefined, - ); - }); }); }); |