Commit 90910331 authored by Clement Ho's avatar Clement Ho

Merge branch 'restored-issue-weight' into 'master'

Added back weight icon on issue rows

Closes #1739

See merge request !1250
parents 904981f7 288724e7
......@@ -41,6 +41,11 @@
 
%span.task-status
= issue.task_status
- if issue.weight
 
%span
= icon('balance-scale')
= issue.weight
.pull-right.issue-updated-at
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}
---
title: Added back weight in issue rows on issue list
merge_request:
author:
......@@ -146,6 +146,17 @@ describe 'Issues', feature: true do
expect(page).to have_content 'foobar'
expect(page.all('.no-comments').first.text).to eq "0"
end
it 'shows weight on issue row' do
create(:issue, author: @user, project: project, weight: 2)
visit namespace_project_issues_path(project.namespace, project)
page.within(first('.issue-info')) do
expect(page).to have_selector('.fa-balance-scale')
expect(page).to have_content(2)
end
end
end
describe 'Filter issue' do
......@@ -657,7 +668,7 @@ describe 'Issues', feature: true do
it 'removes due date from issue' do
date = Date.today.at_beginning_of_month + 2.days
page.within '.due_date' do
click_link 'Edit'
......
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