Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 31 additions & 25 deletions frontend/package-lock.json

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

10 changes: 5 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
14 changes: 10 additions & 4 deletions frontend/src/components/Labels/LabelsBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 () => {
Expand Down