summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-07-18 23:35:04 +0000
committerMark Lapierre <mlapierre@gitlab.com>2019-07-18 23:35:04 +0000
commitab10dbac9bfa0ea086b858d804a6a485e212e46a (patch)
treecb18c26c72df8143ba053271aaab98c17eeb2ad7
parent11d48d8da66b3c5e098ce8b3944de9388e119f25 (diff)
parent3bded603974e7cd22e90be9911ba0fc08ca26b94 (diff)
downloadgitlab-ce-ab10dbac9bfa0ea086b858d804a6a485e212e46a.tar.gz
Merge branch 'qa/refactor-check-mentions-for-xss-spec' into 'master'
Refactor check mentions for xss test See merge request gitlab-org/gitlab-ce!30914
-rw-r--r--qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
index 5eceeb9661c..afddbff75bd 100644
--- a/qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
+++ b/qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
@@ -3,9 +3,7 @@
module QA
context 'Plan' do
describe 'check xss occurence in @mentions in issues' do
- let(:issue_title) { 'issue title' }
-
- it 'user mentions a user in comment' do
+ before do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
@@ -25,11 +23,13 @@ module QA
end
issue = Resource::Issue.fabricate_via_api! do |issue|
- issue.title = issue_title
+ issue.title = 'issue title'
issue.project = project
end
issue.visit!
+ end
+ it 'user mentions a user in comment' do
Page::Project::Issue::Show.perform do |show_page|
show_page.select_all_activities_filter
show_page.comment('cc-ing you here @eve')