From b9e67efab162a148683cf57d890d11976143286d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:07:01 -0400 Subject: [PATCH] build(deps): Bump react-hook-form from 7.50.1 to 7.51.2 (#1698) * build(deps): Bump react-hook-form from 7.50.1 to 7.51.2 Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.50.1 to 7.51.2. - [Release notes](https://github.com/react-hook-form/react-hook-form/releases) - [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md) - [Commits](https://github.com/react-hook-form/react-hook-form/compare/v7.50.1...v7.51.2) --- updated-dependencies: - dependency-name: react-hook-form dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix: Removed not working testing-library rule, added waitFor --------- Signed-off-by: dependabot[bot] Co-authored-by: Paul Schreiber Co-authored-by: Jose Buitron --- .eslintrc | 1 + package-lock.json | 8 ++++---- package.json | 2 +- .../components/LandscapeForm/ProfileUpdate.test.js | 6 +++++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index c6524cced..4c0892e95 100644 --- a/.eslintrc +++ b/.eslintrc @@ -21,6 +21,7 @@ "rules": { "prettier/prettier": "error", "testing-library/no-unnecessary-act": "off", + "testing-library/prefer-find-by": "off", "curly": "error" } } diff --git a/package-lock.json b/package-lock.json index 415752297..3716ce36a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ "react-error-boundary": "^4.0.13", "react-helmet-async": "^2.0.4", "react-highlight-words": "^0.20.0", - "react-hook-form": "^7.50.1", + "react-hook-form": "^7.51.2", "react-i18next": "^14.1.1", "react-redux": "^8.1.3", "react-router-dom": "^6.23.0", @@ -25657,9 +25657,9 @@ "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==" }, "node_modules/react-hook-form": { - "version": "7.50.1", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.50.1.tgz", - "integrity": "sha512-3PCY82oE0WgeOgUtIr3nYNNtNvqtJ7BZjsbxh6TnYNbXButaD5WpjOmTjdxZfheuHKR68qfeFnEDVYoSSFPMTQ==", + "version": "7.51.2", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.51.2.tgz", + "integrity": "sha512-y++lwaWjtzDt/XNnyGDQy6goHskFualmDlf+jzEZvjvz6KWDf7EboL7pUvRCzPTJd0EOPpdekYaQLEvvG6m6HA==", "engines": { "node": ">=12.22.0" }, diff --git a/package.json b/package.json index bbc2d3fdd..d85a5edce 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "react-error-boundary": "^4.0.13", "react-helmet-async": "^2.0.4", "react-highlight-words": "^0.20.0", - "react-hook-form": "^7.50.1", + "react-hook-form": "^7.51.2", "react-i18next": "^14.1.1", "react-redux": "^8.1.3", "react-router-dom": "^6.23.0", diff --git a/src/landscape/components/LandscapeForm/ProfileUpdate.test.js b/src/landscape/components/LandscapeForm/ProfileUpdate.test.js index 4ab887dc3..7e2ba33da 100644 --- a/src/landscape/components/LandscapeForm/ProfileUpdate.test.js +++ b/src/landscape/components/LandscapeForm/ProfileUpdate.test.js @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ -import { fireEvent, render, screen, within } from 'tests/utils'; +import { fireEvent, render, screen, waitFor, within } from 'tests/utils'; import React from 'react'; import { act } from 'react-dom/test-utils'; import { useParams } from 'react-router-dom'; @@ -50,6 +50,10 @@ const setup = async () => { }); fireEvent.change(combobox, { target: { value: newValue } }); + await waitFor(() => + expect(screen.getByRole('listbox', { name })).toBeInTheDocument() + ); + const optionsList = screen.getByRole('listbox', { name }); if (isNew) {