Commit 662f87ca authored by Phil Hughes's avatar Phil Hughes

spec fixes

parent 098a9805
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
} }
.tree-content-holder { .tree-content-holder {
display: -webkit-flex;
display: flex; display: flex;
min-height: 300px; min-height: 300px;
} }
...@@ -134,6 +135,10 @@ ...@@ -134,6 +135,10 @@
vertical-align: middle; vertical-align: middle;
text-decoration: none; text-decoration: none;
margin-right: 12px; margin-right: 12px;
&:focus {
outline: none;
}
} }
.close-btn { .close-btn {
......
...@@ -28,8 +28,6 @@ feature 'Multi-file editor new file', :js do ...@@ -28,8 +28,6 @@ feature 'Multi-file editor new file', :js do
click_button('Create file') click_button('Create file')
end end
find('.inputarea').send_keys('file content')
fill_in('commit-message', with: 'commit message') fill_in('commit-message', with: 'commit message')
click_button('Commit 1 file') click_button('Commit 1 file')
......
...@@ -19,6 +19,7 @@ describe('new file modal component', () => { ...@@ -19,6 +19,7 @@ describe('new file modal component', () => {
beforeEach(() => { beforeEach(() => {
vm = createComponentWithStore(Component, store, { vm = createComponentWithStore(Component, store, {
type, type,
path: '',
}).$mount(); }).$mount();
vm.entryName = 'testing'; vm.entryName = 'testing';
...@@ -187,6 +188,7 @@ describe('new file modal component', () => { ...@@ -187,6 +188,7 @@ describe('new file modal component', () => {
vm = createComponentWithStore(Component, store, { vm = createComponentWithStore(Component, store, {
type: 'tree', type: 'tree',
path: '',
}).$mount('.js-test'); }).$mount('.js-test');
expect(document.activeElement).toBe(vm.$refs.fieldName); expect(document.activeElement).toBe(vm.$refs.fieldName);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment