Skip to content

Commit

Permalink
Revert testing-library/user-event package reference
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Fitzgibbons <[email protected]>
  • Loading branch information
pjfitzgibbons committed Dec 20, 2023
1 parent 45f499f commit 87d57d5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
},
"devDependencies": {
"@cypress/skip-test": "^2.6.1",
"@testing-library/user-event": "^14.5.1",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/mime": "^3.0.1",
"@types/react-plotly.js": "^2.5.0",
Expand Down Expand Up @@ -83,4 +82,4 @@
"node_modules/*",
"target/*"
]
}
}
3 changes: 0 additions & 3 deletions public/components/metrics/redux/slices/metrics_slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ export const {
updateMetric,
} = metricSlice.actions;

/** private actions */
const { setDateSpan } = metricSlice.actions;

/** private actions */

const { selectMetric, setMetric, setSortedIds } = metricSlice.actions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

import React, { PropsWithChildren } from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import type { RenderOptions } from '@testing-library/react';
import { configureStore } from '@reduxjs/toolkit';
import { Provider } from 'react-redux';

Expand Down Expand Up @@ -149,7 +147,8 @@ describe('Export Metrics Panel Component', () => {

expect(await screen.findByText('Custom operational dashboards/application'));

userEvent.keyboard('{ESCAPE}');
const dialog = screen.getByRole('dialog');
fireEvent.keyDown(dialog, { key: 'Escape', code: 'Escape' });

await waitFor(() => {
expect(screen.queryByTestId('metrics__SaveCancel')).not.toBeInTheDocument();
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,6 @@
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e"
integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==

"@testing-library/user-event@^14.5.1":
version "14.5.1"
resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.5.1.tgz#27337d72046d5236b32fd977edee3f74c71d332f"
integrity sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg==

"@types/cheerio@*":
version "0.22.32"
resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.32.tgz#1a41608fd072544c3ed6c0d6cc3fcf08d07715de"
Expand Down

0 comments on commit 87d57d5

Please sign in to comment.