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
952a29f0
Commit
952a29f0
authored
Jun 02, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add waiting for requests in discussion_comments_shared_example.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
6572aabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spec/support/shared_examples/features/discussion_comments_shared_example.rb
...d_examples/features/discussion_comments_shared_example.rb
+4
-0
No files found.
spec/support/shared_examples/features/discussion_comments_shared_example.rb
View file @
952a29f0
...
@@ -11,6 +11,8 @@ RSpec.shared_examples 'thread comments for commit and snippet' do |resource_name
...
@@ -11,6 +11,8 @@ RSpec.shared_examples 'thread comments for commit and snippet' do |resource_name
let
(
:comment
)
{
'My comment'
}
let
(
:comment
)
{
'My comment'
}
it
'clicking "Comment" will post a comment'
do
it
'clicking "Comment" will post a comment'
do
wait_for_all_requests
expect
(
page
).
to
have_selector
toggle_selector
expect
(
page
).
to
have_selector
toggle_selector
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
comment
)
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
comment
)
...
@@ -29,6 +31,8 @@ RSpec.shared_examples 'thread comments for commit and snippet' do |resource_name
...
@@ -29,6 +31,8 @@ RSpec.shared_examples 'thread comments for commit and snippet' do |resource_name
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
comment
)
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
comment
)
find
(
toggle_selector
).
click
find
(
toggle_selector
).
click
wait_for_all_requests
end
end
it
'has a "Comment" item (selected by default) and "Start thread" item'
do
it
'has a "Comment" item (selected by default) and "Start thread" item'
do
...
...
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