-
Notifications
You must be signed in to change notification settings - Fork 297
feat: improved accessibility of notification tray #1817
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
220d14e
c6fc88b
8eb8ab0
5199cee
217a46c
d23f8a2
ca3a43c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,152 @@ | ||||||||||||
| import React from 'react'; | ||||||||||||
| import { Factory } from 'rosie'; | ||||||||||||
| import { | ||||||||||||
|
Comment on lines
1
to
5
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [code style]: Let’s separate external library imports from local imports with a blank line for better readability.
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the line
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||||||||||||
| initializeTestStore, | ||||||||||||
| render, | ||||||||||||
| screen, | ||||||||||||
| fireEvent, | ||||||||||||
| waitFor, | ||||||||||||
| } from '@src/setupTest'; | ||||||||||||
| import userEvent from '@testing-library/user-event'; | ||||||||||||
| import SidebarContext from '../SidebarContext'; | ||||||||||||
| import SidebarBase from './SidebarBase'; | ||||||||||||
| import messages from '../../messages'; | ||||||||||||
| import { useSidebarFocusAndKeyboard } from './hooks/useSidebarFocusAndKeyboard'; | ||||||||||||
|
|
||||||||||||
| jest.mock('./hooks/useSidebarFocusAndKeyboard'); | ||||||||||||
|
|
||||||||||||
| const SIDEBAR_ID = 'test-sidebar'; | ||||||||||||
|
|
||||||||||||
| const mockUseSidebarFocusAndKeyboard = useSidebarFocusAndKeyboard; | ||||||||||||
|
|
||||||||||||
| describe('SidebarBase (Refactored)', () => { | ||||||||||||
|
||||||||||||
| describe('SidebarBase (Refactored)', () => { | |
| describe('SidebarBase', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace the static text in these tests with values from defaultProps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this React import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed