Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed:#2072 Upgraded package @testing-library/user-event from 12.8.3 to 14.5.2 #3252

Open
wants to merge 10 commits into
base: develop-postgres
Choose a base branch
from
14 changes: 6 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.7",
"@babel/preset-typescript": "^7.26.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^12.1.10",
"@testing-library/dom": "^10.4.0",
"@testing-library/user-event": "^14.5.2",
"@types/inquirer": "^9.0.7",
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
"@types/jest": "^26.0.24",
"@types/js-cookie": "^3.0.6",
Expand Down
3 changes: 3 additions & 0 deletions src/components/UpdateSession/UpdateSession.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ describe('Testing UpdateTimeout Component', () => {
// Simulate dragging to minimum value
userEvent.click(slider, {
// Simulate clicking on the slider to focus
// @ts-expect-error: Explanation for why this error is ignored
clientX: -999, // Adjust the clientX to simulate different slider positions
});

Expand All @@ -127,6 +128,7 @@ describe('Testing UpdateTimeout Component', () => {
// Simulate dragging to maximum value
userEvent.click(slider, {
// Simulate clicking on the slider to focus
// @ts-expect-error: Explanation for why this error is ignored
clientX: 999, // Adjust the clientX to simulate different slider positions
});

Expand All @@ -147,6 +149,7 @@ describe('Testing UpdateTimeout Component', () => {
// Simulate invalid value handling
userEvent.click(slider, {
// Simulate clicking on the slider to focus
// @ts-expect-error: Explanation for why this error is ignored
clientX: 0, // Adjust the clientX to simulate different slider positions
});

Expand Down
Loading