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
fbf06761
Commit
fbf06761
authored
Mar 19, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the 'User comments on a snippet' system test more robust
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
99b3ee82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
spec/features/projects/snippets/user_comments_on_snippet_spec.rb
...atures/projects/snippets/user_comments_on_snippet_spec.rb
+5
-1
No files found.
spec/features/projects/snippets/user_comments_on_snippet_spec.rb
View file @
fbf06761
...
@@ -13,6 +13,9 @@ describe 'Projects > Snippets > User comments on a snippet', :js do
...
@@ -13,6 +13,9 @@ describe 'Projects > Snippets > User comments on a snippet', :js do
sign_in
(
user
)
sign_in
(
user
)
visit
(
project_snippet_path
(
project
,
snippet
))
visit
(
project_snippet_path
(
project
,
snippet
))
# Snippet's content is loaded async, we wait for it before we try to click anything
wait_for_requests
end
end
it
'leaves a comment on a snippet'
do
it
'leaves a comment on a snippet'
do
...
@@ -34,7 +37,8 @@ describe 'Projects > Snippets > User comments on a snippet', :js do
...
@@ -34,7 +37,8 @@ describe 'Projects > Snippets > User comments on a snippet', :js do
end
end
it
'has zen mode'
do
it
'has zen mode'
do
find
(
'.js-zen-enter'
).
click
click_button
'Go full screen'
expect
(
page
).
to
have_selector
(
'.fullscreen'
)
expect
(
page
).
to
have_selector
(
'.fullscreen'
)
end
end
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