diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2017-05-05 10:57:29 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-05 10:57:29 +0000 |
commit | 645593e5af1fe9e7fa345788aeaa90d2313d6486 (patch) | |
tree | 514b8e8acbc10e915c50971c31b7fab6fdbcb18f /spec/support/time_tracking_shared_examples.rb | |
parent | a5347fe58f6ace1ced67fa32a8469ba4e2819606 (diff) | |
download | gitlab-ce-645593e5af1fe9e7fa345788aeaa90d2313d6486.tar.gz |
Add instant comments support
Diffstat (limited to 'spec/support/time_tracking_shared_examples.rb')
-rw-r--r-- | spec/support/time_tracking_shared_examples.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/time_tracking_shared_examples.rb b/spec/support/time_tracking_shared_examples.rb index 01bc80f957e..e94e17da7e5 100644 --- a/spec/support/time_tracking_shared_examples.rb +++ b/spec/support/time_tracking_shared_examples.rb @@ -8,6 +8,7 @@ shared_examples 'issuable time tracker' do it 'updates the sidebar component when estimate is added' do submit_time('/estimate 3w 1d 1h') + wait_for_ajax page.within '.time-tracking-estimate-only-pane' do expect(page).to have_content '3w 1d 1h' end @@ -16,6 +17,7 @@ shared_examples 'issuable time tracker' do it 'updates the sidebar component when spent is added' do submit_time('/spend 3w 1d 1h') + wait_for_ajax page.within '.time-tracking-spend-only-pane' do expect(page).to have_content '3w 1d 1h' end @@ -25,6 +27,7 @@ shared_examples 'issuable time tracker' do submit_time('/estimate 3w 1d 1h') submit_time('/spend 3w 1d 1h') + wait_for_ajax page.within '.time-tracking-comparison-pane' do expect(page).to have_content '3w 1d 1h' end @@ -34,6 +37,7 @@ shared_examples 'issuable time tracker' do submit_time('/estimate 3w 1d 1h') submit_time('/remove_estimate') + wait_for_ajax page.within '#issuable-time-tracker' do expect(page).to have_content 'No estimate or time spent' end @@ -43,6 +47,7 @@ shared_examples 'issuable time tracker' do submit_time('/spend 3w 1d 1h') submit_time('/remove_time_spent') + wait_for_ajax page.within '#issuable-time-tracker' do expect(page).to have_content 'No estimate or time spent' end |