diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2019-04-12 21:31:04 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2019-04-12 21:31:04 +0000 |
commit | 0a99e0220d9371423039f05f700af3675b26624f (patch) | |
tree | a0240a4518cbf2e40c3ecbded7b744564b0e5195 /spec | |
parent | d2d9fb9a863909d1002029ddd19247b52264ab4d (diff) | |
parent | 214c1c7d94f89499185b201d0c68006be54822e5 (diff) | |
download | gitlab-ce-0a99e0220d9371423039f05f700af3675b26624f.tar.gz |
Merge branch '31331-add-time-tracking-issue-boards-sidebar' into 'master'
Add time tracking information to Issue Boards sidebar
Closes #31331
See merge request gitlab-org/gitlab-ce!27166
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/boards/sidebar_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/boards/sidebar_spec.rb b/spec/features/boards/sidebar_spec.rb index b358c6b9c34..8f34fddbf06 100644 --- a/spec/features/boards/sidebar_spec.rb +++ b/spec/features/boards/sidebar_spec.rb @@ -222,6 +222,21 @@ describe 'Issue Boards', :js do end end + context 'time tracking' do + before do + issue2.timelogs.create(time_spent: 14400, user: user) + issue2.update!(time_estimate: 28800) + end + + it 'shows time tracking progress bar' do + click_card(card) + + page.within('.time-tracking') do + expect(find('.time-tracking-content .compare-meter')['data-original-title']).to eq('Time remaining: 4h') + end + end + end + context 'due date' do it 'updates due date' do click_card(card) |