From d983593467646be7086365f569bec3d160ace4a2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 12:44:58 +0000 Subject: [PATCH 1/2] MAINT: Bump the minor-and-patch group in /frontend with 5 updates Bumps the minor-and-patch group in /frontend with 5 updates: | Package | From | To | | --- | --- | --- | | [@azure/msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js) | `5.18.0` | `5.19.0` | | [@azure/msal-react](https://github.com/AzureAD/microsoft-authentication-library-for-js) | `5.5.5` | `5.6.0` | | [@fluentui/react-icons](https://github.com/microsoft/fluentui-system-icons) | `2.0.335` | `2.0.337` | | [react-error-boundary](https://github.com/bvaughn/react-error-boundary) | `6.1.2` | `6.1.3` | | [@testing-library/user-event](https://github.com/testing-library/user-event) | `14.6.4` | `14.6.5` | Updates `@azure/msal-browser` from 5.18.0 to 5.19.0 - [Release notes](https://github.com/AzureAD/microsoft-authentication-library-for-js/releases) - [Commits](https://github.com/AzureAD/microsoft-authentication-library-for-js/compare/msal-browser-v5.18.0...msal-browser-v5.19.0) Updates `@azure/msal-react` from 5.5.5 to 5.6.0 - [Release notes](https://github.com/AzureAD/microsoft-authentication-library-for-js/releases) - [Commits](https://github.com/AzureAD/microsoft-authentication-library-for-js/compare/msal-react-v5.5.5...msal-node-v5.6.0) Updates `@fluentui/react-icons` from 2.0.335 to 2.0.337 - [Changelog](https://github.com/microsoft/fluentui-system-icons/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/fluentui-system-icons/commits) Updates `react-error-boundary` from 6.1.2 to 6.1.3 - [Release notes](https://github.com/bvaughn/react-error-boundary/releases) - [Commits](https://github.com/bvaughn/react-error-boundary/compare/6.1.2...6.1.3) Updates `@testing-library/user-event` from 14.6.4 to 14.6.5 - [Release notes](https://github.com/testing-library/user-event/releases) - [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md) - [Commits](https://github.com/testing-library/user-event/compare/v14.6.4...v14.6.5) --- updated-dependencies: - dependency-name: "@azure/msal-browser" dependency-version: 5.19.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: "@azure/msal-react" dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: "@fluentui/react-icons" dependency-version: 2.0.337 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: react-error-boundary dependency-version: 6.1.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: "@testing-library/user-event" dependency-version: 14.6.5 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] --- frontend/package-lock.json | 56 +++++++++++++++++++++----------------- frontend/package.json | 10 +++---- 2 files changed, 36 insertions(+), 30 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 58c1cf62c6..8256b18eb5 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8,14 +8,14 @@ "name": "pyrit-frontend", "version": "1.1.0-dev.0", "dependencies": { - "@azure/msal-browser": "^5.18.0", - "@azure/msal-react": "^5.5.5", + "@azure/msal-browser": "^5.19.0", + "@azure/msal-react": "^5.6.0", "@fluentui/react-components": "9.74.6", - "@fluentui/react-icons": "2.0.335", + "@fluentui/react-icons": "2.0.337", "axios": "1.19.0", "react": "19.2.8", "react-dom": "19.2.8", - "react-error-boundary": "6.1.2", + "react-error-boundary": "6.1.3", "react-joyride": "^3.2.0", "react-markdown": "^10.1.0", "react-router": "8.3.0", @@ -27,7 +27,7 @@ "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "7.0.1", "@testing-library/react": "16.3.2", - "@testing-library/user-event": "14.6.4", + "@testing-library/user-event": "14.6.5", "@types/jest": "30.0.0", "@types/node": "26.2.0", "@types/react": "19.2.18", @@ -79,36 +79,36 @@ "license": "ISC" }, "node_modules/@azure/msal-browser": { - "version": "5.18.0", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-5.18.0.tgz", - "integrity": "sha512-SPTeHYZghdEdRddJzNjhH+CI5MSQtquNYwGJnYXfOHIBRXCmrWimBS85OhwXpXFIlrCtNTbBPm5mPAWRNEoktA==", + "version": "5.19.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-5.19.0.tgz", + "integrity": "sha512-DHe9iRcyByGJuLPkl0K31a1JjOdRY2zX38Q07mQpSbR8zOj1EIgsWfTXhSQVyyijUxlcofVy/br7qWJbrMwVXQ==", "license": "MIT", "dependencies": { - "@azure/msal-common": "16.12.0" + "@azure/msal-common": "16.13.0" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "16.12.0", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-16.12.0.tgz", - "integrity": "sha512-hgLgfRdbG2AmhXPygebf1KYJEvse86+ZZLWufdiTKaGRYEUqOzHdlf6AS1IiuUCHWbynkgbHc451jSNkbfhWlg==", + "version": "16.13.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-16.13.0.tgz", + "integrity": "sha512-rOAy0KUcyBbdwVJ+f3uPpthXatFLLZN+/KWAsTLzk1aB23Xl9DRmmXYwSvBFOZyXj4jUQQ5FKxxRkhAFW1fOow==", "license": "MIT", "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-react": { - "version": "5.5.5", - "resolved": "https://registry.npmjs.org/@azure/msal-react/-/msal-react-5.5.5.tgz", - "integrity": "sha512-ThfCfMY6mZEQyU26Yi9wxLk0yh20XdS1xur7/++zHUnG5mb7iJM3qXM8Qcbh7qThqWrGYj1yZVAcWFqZgyBNbQ==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@azure/msal-react/-/msal-react-5.6.0.tgz", + "integrity": "sha512-YnHd0ruSw8E8EeOL4Vn6qwQmbnukHoolHnzZ6HzYepP/VgXh6yrQjylrCzVX9gDrtvWMQ6XpylIdQ7sh5VvIKw==", "license": "MIT", "engines": { "node": ">=20" }, "peerDependencies": { - "@azure/msal-browser": "^5.18.0", + "@azure/msal-browser": "^5.19.0", "react": "^16.8.0 || ^17 || ^18 || ^19.2.1" } }, @@ -1935,9 +1935,9 @@ } }, "node_modules/@fluentui/react-icons": { - "version": "2.0.335", - "resolved": "https://registry.npmjs.org/@fluentui/react-icons/-/react-icons-2.0.335.tgz", - "integrity": "sha512-Feepn3HRL3JvcVf4NT7UYtaLLtEI/VNMfH9AZj1vuYvi9BZ9f0Gg3DXCZFmg0bD8KifFzdQI8YZbQr7jPdL4aw==", + "version": "2.0.337", + "resolved": "https://registry.npmjs.org/@fluentui/react-icons/-/react-icons-2.0.337.tgz", + "integrity": "sha512-0lhTfPAMnRaozExvwIB0fWb8Iluz6pvz2Xj6Jgfq9CYmMmdoIYRLCqxhxFGOw1ZHBIQWs6tRgH1zATrWcXlQMA==", "license": "MIT", "dependencies": { "@griffel/react": "^1.6.1", @@ -4110,9 +4110,9 @@ } }, "node_modules/@testing-library/user-event": { - "version": "14.6.4", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.4.tgz", - "integrity": "sha512-QCGwP6QrjypBLwyj5cuyfVamkaIEy/XGY+1VDehbtbQqOggYmTFpFOdWR5mPz14vX8vXLMVjDHlRNBcClyO9ew==", + "version": "14.6.5", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.5.tgz", + "integrity": "sha512-FhqjldLTpteueBaKflhNFlMT3+PM0O5fiBUivht6b9CZ1eesJyy7+g3Jr7XwJzt/Hip3ZG5hWwK1MX1FuDiE4w==", "dev": true, "license": "MIT", "engines": { @@ -10226,12 +10226,18 @@ } }, "node_modules/react-error-boundary": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.1.2.tgz", - "integrity": "sha512-3DpCr5HVdZ0caUjYE/kIHBEJN0mNP3ZCgf16c48uJ5TbWjorKVp+YG8W3XqlJ7vJAVNw6wNIImyPXmFydwmyng==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.1.3.tgz", + "integrity": "sha512-GnSKpCohFi2nQmJCWwP8O8wub7zexlePvpsejvQr35vS5RTouS1+utTNOmyc540yw5vyOXnSL1rBWsCQDmkyUA==", "license": "MIT", "peerDependencies": { + "@types/react": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/react-innertext": { diff --git a/frontend/package.json b/frontend/package.json index 2a5db9683b..ced8088eca 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -22,14 +22,14 @@ "test:e2e:headed": "playwright test --headed" }, "dependencies": { - "@azure/msal-browser": "^5.18.0", - "@azure/msal-react": "^5.5.5", + "@azure/msal-browser": "^5.19.0", + "@azure/msal-react": "^5.6.0", "@fluentui/react-components": "9.74.6", - "@fluentui/react-icons": "2.0.335", + "@fluentui/react-icons": "2.0.337", "axios": "1.19.0", "react": "19.2.8", "react-dom": "19.2.8", - "react-error-boundary": "6.1.2", + "react-error-boundary": "6.1.3", "react-joyride": "^3.2.0", "react-markdown": "^10.1.0", "react-router": "8.3.0", @@ -41,7 +41,7 @@ "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "7.0.1", "@testing-library/react": "16.3.2", - "@testing-library/user-event": "14.6.4", + "@testing-library/user-event": "14.6.5", "@types/jest": "30.0.0", "@types/node": "26.2.0", "@types/react": "19.2.18", From e499af055085647a8a649b3d6912998dab78d2c1 Mon Sep 17 00:00:00 2001 From: Behnam Ousat Date: Fri, 28 Aug 2026 16:25:50 -0700 Subject: [PATCH 2/2] TEST: adapt LabelsBar focus test to user-event 14.6.5 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 734f5dfe-ef76-4e0a-8471-6fdf276491a9 --- frontend/src/components/Labels/LabelsBar.test.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Labels/LabelsBar.test.tsx b/frontend/src/components/Labels/LabelsBar.test.tsx index f69dbe0eda..a5af3163da 100644 --- a/frontend/src/components/Labels/LabelsBar.test.tsx +++ b/frontend/src/components/Labels/LabelsBar.test.tsx @@ -1215,7 +1215,6 @@ describe('LabelsBar', () => { }) it('should let focus advance to the next control when tabbing away', async () => { - const user = userEvent.setup() const onChange = jest.fn() mockedLabelsApi.getLabels.mockResolvedValue({ source: 'attacks', @@ -1230,11 +1229,18 @@ describe('LabelsBar', () => { await waitFor(() => expect(mockedLabelsApi.getLabels).toHaveBeenCalled()) fireEvent.keyDown(screen.getByTestId('label-operation'), { key: 'Enter' }) - await screen.findByTestId('edit-label-operation') - await user.tab() + const input = await screen.findByTestId('edit-label-operation') + await waitFor(() => expect(input).toHaveFocus()) + const nextButton = screen.getByRole('button', { name: 'after' }) + + // jsdom cannot complete Fluent's Tabster focus-guard navigation, so + // dispatch Tab and drive its browser focus destination explicitly. + fireEvent.keyDown(input, { key: 'Tab' }) + nextButton.focus() + await waitFor(() => expect(input).not.toBeInTheDocument()) expect(onChange).not.toHaveBeenCalled() - await waitFor(() => expect(document.activeElement).not.toBe(document.body)) + expect(nextButton).toHaveFocus() }) it('should match existing operations regardless of their casing', async () => {