Commit 9bbac138 authored by Phil Hughes's avatar Phil Hughes

Added update weight tests

parent c863dff5
......@@ -226,6 +226,27 @@ describe 'Issues', feature: true do
end
end
describe 'update weight from issue#show', js: true do
let!(:issue) { create(:issue, project: project) }
before do
visit namespace_project_issue_path(project.namespace, project, issue)
end
it 'should allow user to update to a weight' do
page.within('.weight') do
expect(page).to have_content "None"
click_link 'Edit'
find('.dropdown-content a', text: '1').click
page.within('.value') do
expect(page).to have_content "1"
end
end
end
end
describe 'update milestone from issue#show' do
let!(:issue) { create(:issue, project: project, author: @user) }
let!(:milestone) { create(:milestone, 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