Improve ThreadPanel ctx menu accessibility (#7217)
This commit is contained in:
parent
9727a82a12
commit
fe24c8ad2a
20 changed files with 35 additions and 48 deletions
|
@ -70,7 +70,7 @@ describe('ThreadPanel', () => {
|
|||
wrapper.find(ContextMenuButton).simulate('click');
|
||||
const found = wrapper.find(ThreadPanelHeaderFilterOptionItem);
|
||||
expect(found.length).toEqual(2);
|
||||
const foundButton = found.find('[aria-selected=true]').first();
|
||||
const foundButton = found.find('[aria-checked=true]').first();
|
||||
expect(foundButton.text()).toEqual(`${_t("All threads")}${_t('Shows all threads from current room')}`);
|
||||
expect(foundButton).toMatchSnapshot();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue