diff options
author | Phil Hughes <me@iamphill.com> | 2017-01-06 17:43:21 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-02-06 12:25:11 +0300 |
commit | 8331036944cc6b7cc376b464eae353882f125113 (patch) | |
tree | 917382162251adb0c80a04d5d0d10c073a0f0687 /spec/features/issues_spec.rb | |
parent | 2b9457412c389ed2509774810fc1a7f634845e14 (diff) |
Fixed some specs
CHANGELOG item
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 394eb31aff8..bee07d40efe 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -78,8 +78,8 @@ describe 'Issues', feature: true do fill_in 'issue_description', with: 'bug description' find('#issuable-due-date').click - page.within '.ui-datepicker' do - click_link date.day + page.within '.pika-single' do + click_button date.day end expect(find('#issuable-due-date').value).to eq date.to_s @@ -110,8 +110,8 @@ describe 'Issues', feature: true do fill_in 'issue_description', with: 'bug description' find('#issuable-due-date').click - page.within '.ui-datepicker' do - click_link date.day + page.within '.pika-single' do + click_button date.day end expect(find('#issuable-due-date').value).to eq date.to_s @@ -624,8 +624,8 @@ describe 'Issues', feature: true do page.within '.due_date' do click_link 'Edit' - page.within '.ui-datepicker-calendar' do - click_link date.day + page.within '.pika-single' do + click_button date.day end wait_for_ajax @@ -636,10 +636,10 @@ describe 'Issues', feature: true do it 'removes due date from issue' do page.within '.due_date' do - click_link 'Edit' + date = Date.today.at_beginning_of_month + 2.days - page.within '.ui-datepicker-calendar' do - first('.ui-state-default').click + page.within '.pika-single' do + click_button date.day end wait_for_ajax |