Skip to content

Fix a batch of minor issues#2263

Closed
pascalwengerter wants to merge 3 commits intoopencloud-eu:mainfrom
pascalwengerter:fix/minor-issues
Closed

Fix a batch of minor issues#2263
pascalwengerter wants to merge 3 commits intoopencloud-eu:mainfrom
pascalwengerter:fix/minor-issues

Conversation

@pascalwengerter
Copy link
Copy Markdown
Contributor

expect(addShare).toHaveBeenCalled()
})
it('passes the expiration date set via collaboratorExpiryChanged to addShare', async () => {
const { wrapper } = getWrapper({}, { OcDrop: { template: '<div />', methods: { hide: vi.fn() } } })
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The web-test-helpers package exports a ocDropStub for this exact use case, I guess it should work here.

}

drop?.show({ event, useMouseAnchor: true })
drop?.show({ event, useMouseAnchor: true, noFocus: true })
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the focus for a11y reasons. The user should be able to navigate the drop menu with arrow keys, which breaks then setting noFocus: true here.

@pascalwengerter
Copy link
Copy Markdown
Contributor Author

Closing this in favor of dedicated PRs for the individual issues. Not sure how to resolve #2244 without causing a11y regressions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants