Skip to content

Commit 58282f3

Browse files
committed
remove before each
1 parent d62bd06 commit 58282f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/test.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ describe('markdown-toolbar-element', function () {
9696

9797
describe('focus management', function () {
9898
function focusFirstButton() {
99+
document.querySelector('markdown-toolbar').focus()
99100
const button = document.querySelector('md-bold')
100101
button.focus()
101102
}
@@ -111,10 +112,6 @@ describe('markdown-toolbar-element', function () {
111112
return [...document.querySelectorAll(`markdown-toolbar [tabindex="${index}"]`)]
112113
}
113114

114-
beforeEach(() => {
115-
document.querySelector('markdown-toolbar').focus()
116-
})
117-
118115
it('moves focus to next button when ArrowRight is pressed', function () {
119116
focusFirstButton()
120117
pushKeyOnFocussedButton('ArrowRight')

0 commit comments

Comments
 (0)