Fix specs on macOS when "Show scroll bars" option isn't "always"

This commit is contained in:
Nathan Sobo
2017-06-01 12:01:11 +02:00
parent 44a442c08a
commit 2372227b00

View File

@@ -27,6 +27,11 @@ document.registerElement('text-editor-component-test-element', {
describe('TextEditorComponent', () => {
beforeEach(() => {
jasmine.useRealClock()
// Force scrollbars to be visible regardless of local system configuration
const scrollbarStyle = document.createElement('style')
scrollbarStyle.textContent = '::-webkit-scrollbar { -webkit-appearance: none }'
jasmine.attachToDOM(scrollbarStyle)
})
describe('rendering', () => {