summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-06 18:08:28 +0000
committerPhil Hughes <me@iamphill.com>2017-02-06 09:25:11 +0000
commit5942247dd6f73f5e92a3c635873e62d0efbf9ea8 (patch)
treeddf7d9e7c5e194d83b11b3e14ddf33f03e109e4b
parent8331036944cc6b7cc376b464eae353882f125113 (diff)
downloadgitlab-ce-5942247dd6f73f5e92a3c635873e62d0efbf9ea8.tar.gz
Fixed missing edit link click
-rw-r--r--app/assets/javascripts/due_date_select.js.es61
-rw-r--r--spec/features/issues_spec.rb4
2 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/due_date_select.js.es6 b/app/assets/javascripts/due_date_select.js.es6
index ebf89c2d59b..b3def37ad66 100644
--- a/app/assets/javascripts/due_date_select.js.es6
+++ b/app/assets/javascripts/due_date_select.js.es6
@@ -86,7 +86,6 @@
});
}
-
saveDueDate(isDropdown) {
this.parseSelectedDate();
this.prepSelectedDate();
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb
index bee07d40efe..755162a1eb5 100644
--- a/spec/features/issues_spec.rb
+++ b/spec/features/issues_spec.rb
@@ -635,8 +635,10 @@ describe 'Issues', feature: true do
end
it 'removes due date from issue' do
+ date = Date.today.at_beginning_of_month + 2.days
+
page.within '.due_date' do
- date = Date.today.at_beginning_of_month + 2.days
+ click_link 'Edit'
page.within '.pika-single' do
click_button date.day