Commit 09439a4a authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '280540-add-time-tracking-report-rspecs' into 'master'

Add rspecs for Time Tracking Report for sidebar

See merge request gitlab-org/gitlab!64930
parents 72a7f202 a8cee305
......@@ -72,6 +72,24 @@ RSpec.shared_examples 'issuable time tracker' do |issuable_type|
end
end
it 'shows the time tracking report when link is clicked' do
submit_time('/estimate 1w')
submit_time('/spend 1d')
wait_for_requests
page.within '.time-tracking-component-wrap' do
click_link 'Time tracking report'
wait_for_requests
end
page.within '#time-tracking-report' do
expect(find('tbody')).to have_content maintainer.name
expect(find('tbody')).to have_content '1d'
end
end
it 'hides the help state when close icon is clicked' do
page.within '.time-tracking-component-wrap' do
find('.help-button').click
......
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