Commit 02dad53f authored by Simon Knox's avatar Simon Knox

remove Turbolinks from lockfile.js, do page refresh instead

parent d2f70576
......@@ -12,7 +12,7 @@
return $.post(url, {
path: path
}, function() {
return Turbolinks.visit(location.href);
location.reload();
});
});
};
......
......@@ -43,6 +43,26 @@ feature 'Path Locks', feature: true, js: true do
end
end
scenario 'Unlocking files' do
page_tree = find('.tree-content-holder')
within page_tree do
click_link "VERSION"
end
within '.file-actions' do
click_link "Lock"
expect(page).to have_link('Unlock')
end
within '.file-actions' do
click_link "Unlock"
expect(page).to have_link('Lock')
end
end
scenario 'Managing of lock list' do
create :path_lock, path: 'encoding', user: user, project: project
......
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