Commit 99b82a07 authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Use `gitlab_` prefixed auth helpers.

parent 562ccdae
...@@ -18,7 +18,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -18,7 +18,7 @@ shared_examples 'issuable record that supports quick actions in its description
project.team << [assignee, :developer] project.team << [assignee, :developer]
project.team << [guest, :guest] project.team << [guest, :guest]
sign_in(master) gitlab_sign_in(master)
end end
after do after do
...@@ -111,8 +111,8 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -111,8 +111,8 @@ shared_examples 'issuable record that supports quick actions in its description
context "when current user cannot close #{issuable_type}" do context "when current user cannot close #{issuable_type}" do
before do before do
sign_out(:user) gitlab_sign_out
sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable)
end end
...@@ -146,8 +146,8 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -146,8 +146,8 @@ shared_examples 'issuable record that supports quick actions in its description
context "when current user cannot reopen #{issuable_type}" do context "when current user cannot reopen #{issuable_type}" do
before do before do
sign_out(:user) gitlab_sign_out
sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable)
end end
...@@ -176,8 +176,8 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -176,8 +176,8 @@ shared_examples 'issuable record that supports quick actions in its description
context "when current user cannot change title of #{issuable_type}" do context "when current user cannot change title of #{issuable_type}" do
before do before do
sign_out(:user) gitlab_sign_out
sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable)
end end
...@@ -265,7 +265,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -265,7 +265,7 @@ shared_examples 'issuable record that supports quick actions in its description
end end
end end
describe "preview of note on #{issuable_type}" do describe "preview of note on #{issuable_type}", js: true do
it 'removes quick actions from note and explains them' do it 'removes quick actions from note and explains them' do
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable)
......
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