diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-19 21:07:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-19 21:07:48 +0300 |
commit | b5571e6e22cdacc81f78eff5943d68c8ba220fbb (patch) | |
tree | 3677b792f5afe0b4853cee59e166df961993b7e8 /qa | |
parent | f92a53a216e6e7d5037ac701efbee5628f91aa9a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb | 8 |
1 files changed, 2 insertions, 6 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 494108dbefc..358083d3f1d 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 @@ -24,12 +24,8 @@ module QA project = Resource::Project.fabricate_via_api! do |resource| resource.name = 'xss-test-for-mentions-project' end - project.visit! - Page::Project::Show.perform(&:go_to_members_settings) - Page::Project::Settings::Members.perform do |members| - members.add_member(user.username) - end + Flow::Project.add_member(project: project, username: user.username) issue = Resource::Issue.fabricate_via_api! do |issue| issue.title = 'issue title' @@ -42,7 +38,7 @@ module QA show.comment("cc-ing you here @#{user.username}") expect do - expect(show).to have_content("cc-ing you here") + expect(show).to have_comment("cc-ing you here") end.not_to raise_error # Selenium::WebDriver::Error::UnhandledAlertError end end |