Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
39cb16c9
Commit
39cb16c9
authored
Dec 19, 2019
by
Jennifer Louie
Committed by
Dan Davison
Dec 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use have_comment method to wait for text to appear in E2E test
parent
db430673
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
...es/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
+2
-6
No files found.
qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
View file @
39cb16c9
...
...
@@ -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_co
nt
ent
(
"cc-ing you here"
)
expect
(
show
).
to
have_co
mm
ent
(
"cc-ing you here"
)
end
.
not_to
raise_error
# Selenium::WebDriver::Error::UnhandledAlertError
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment