summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorJames Lopez <james@gitlab.com>2019-04-09 13:36:28 +0000
committerJames Lopez <james@gitlab.com>2019-04-09 13:36:28 +0000
commit71171bd38988218bfa2c51c52dba694643d25d85 (patch)
treecb12730755cd05429bb169965eb3786f31a943ec /spec/features
parent1898e1bb398062f9948272da7586d9b2361326a0 (diff)
parent8fdfd521b27e6332ee8bd55d5beecea2cbae9ce0 (diff)
downloadgitlab-ce-71171bd38988218bfa2c51c52dba694643d25d85.tar.gz
Merge branch '59570-due-quick-action' into 'master'
Extract due quick action to shared example Closes #59570 See merge request gitlab-org/gitlab-ce!26918
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/issues/user_uses_quick_actions_spec.rb29
1 files changed, 1 insertions, 28 deletions
diff --git a/spec/features/issues/user_uses_quick_actions_spec.rb b/spec/features/issues/user_uses_quick_actions_spec.rb
index ea474759547..68af8303c2f 100644
--- a/spec/features/issues/user_uses_quick_actions_spec.rb
+++ b/spec/features/issues/user_uses_quick_actions_spec.rb
@@ -60,34 +60,7 @@ describe 'Issues > User uses quick actions', :js do
it_behaves_like 'remove_due_date quick action'
it_behaves_like 'duplicate quick action'
it_behaves_like 'create_merge_request quick action'
-
- describe 'adding a due date from note' do
- let(:issue) { create(:issue, project: project) }
-
- it_behaves_like 'due quick action available and date can be added'
-
- context 'when the current user cannot update the due date' do
- let(:guest) { create(:user) }
- before do
- project.add_guest(guest)
- gitlab_sign_out
- sign_in(guest)
- visit project_issue_path(project, issue)
- end
-
- it_behaves_like 'due quick action not available'
- end
- end
-
- describe 'toggling the WIP prefix from the title from note' do
- let(:issue) { create(:issue, project: project) }
-
- it 'does not recognize the command nor create a note' do
- add_note("/wip")
-
- expect(page).not_to have_content '/wip'
- end
- end
+ it_behaves_like 'due quick action'
describe 'move the issue to another project' do
let(:issue) { create(:issue, project: project) }