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
ee685e22
Commit
ee685e22
authored
Jul 03, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport EE MR that improves end-to-end tests
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14533
parent
fb35a3b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
18 deletions
+29
-18
qa/qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb
..._ui/2_plan/issue/collapse_comments_in_discussions_spec.rb
+15
-9
qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
...res/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
+13
-8
qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
...eatures/browser_ui/2_plan/issue/issue_suggestions_spec.rb
+1
-1
No files found.
qa/qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb
View file @
ee685e22
...
@@ -9,27 +9,33 @@ module QA
...
@@ -9,27 +9,33 @@ module QA
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Resource
::
Issue
.
fabricate_via_browser_u
i!
do
|
issue
|
issue
=
Resource
::
Issue
.
fabricate_via_ap
i!
do
|
issue
|
issue
.
title
=
issue_title
issue
.
title
=
issue_title
end
end
issue
.
visit!
expect
(
page
).
to
have_content
(
issue_title
)
expect
(
page
).
to
have_content
(
issue_title
)
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show_page
|
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show_page
|
my_first_discussion
=
"My first discussion"
my_first_reply
=
"My First Reply"
one_reply
=
"1 reply"
show_page
.
select_all_activities_filter
show_page
.
select_all_activities_filter
show_page
.
start_discussion
(
"My first discussion"
)
show_page
.
start_discussion
(
my_first_discussion
)
expect
(
show_page
).
to
have_content
(
"My first discussion"
)
expect
(
show_page
).
to
have_content
(
my_first_discussion
)
show_page
.
reply_to_discussion
(
"My First Reply"
)
show_page
.
reply_to_discussion
(
my_first_reply
)
expect
(
show_page
).
to
have_content
(
"My First Reply"
)
expect
(
show_page
).
to
have_content
(
my_first_reply
)
show_page
.
collapse_replies
show_page
.
collapse_replies
expect
(
show_page
).
to
have_content
(
"1 reply"
)
expect
(
show_page
).
to
have_content
(
one_reply
)
expect
(
show_page
).
not_to
have_content
(
"My First Reply"
)
expect
(
show_page
).
not_to
have_content
(
my_first_reply
)
show_page
.
expand_replies
show_page
.
expand_replies
expect
(
show_page
).
to
have_content
(
"My First Reply"
)
expect
(
show_page
).
to
have_content
(
my_first_reply
)
expect
(
show_page
).
not_to
have_content
(
"1 reply"
)
expect
(
show_page
).
not_to
have_content
(
one_reply
)
end
end
end
end
end
end
...
...
qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
View file @
ee685e22
...
@@ -9,28 +9,33 @@ module QA
...
@@ -9,28 +9,33 @@ module QA
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Resource
::
Issue
.
fabricate_via_browser_u
i!
do
|
issue
|
issue
=
Resource
::
Issue
.
fabricate_via_ap
i!
do
|
issue
|
issue
.
title
=
issue_title
issue
.
title
=
issue_title
end
end
issue
.
visit!
expect
(
page
).
to
have_content
(
issue_title
)
expect
(
page
).
to
have_content
(
issue_title
)
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show_page
|
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show_page
|
my_own_comment
=
"My own comment"
made_the_issue_confidential
=
"made the issue confidential"
show_page
.
comment
(
'/confidential'
,
filter: :comments_only
)
show_page
.
comment
(
'/confidential'
,
filter: :comments_only
)
show_page
.
comment
(
'My own comment'
,
filter: :comments_only
)
show_page
.
comment
(
my_own_comment
,
filter: :comments_only
)
expect
(
show_page
).
not_to
have_content
(
"made the issue confidential"
)
expect
(
show_page
).
not_to
have_content
(
made_the_issue_confidential
)
expect
(
show_page
).
to
have_content
(
"My own comment"
)
expect
(
show_page
).
to
have_content
(
my_own_comment
)
show_page
.
select_all_activities_filter
show_page
.
select_all_activities_filter
expect
(
show_page
).
to
have_content
(
"made the issue confidential"
)
expect
(
show_page
).
to
have_content
(
made_the_issue_confidential
)
expect
(
show_page
).
to
have_content
(
"My own comment"
)
expect
(
show_page
).
to
have_content
(
my_own_comment
)
show_page
.
select_history_only_filter
show_page
.
select_history_only_filter
expect
(
show_page
).
to
have_content
(
"made the issue confidential"
)
expect
(
show_page
).
to
have_content
(
made_the_issue_confidential
)
expect
(
show_page
).
not_to
have_content
(
"My own comment"
)
expect
(
show_page
).
not_to
have_content
(
my_own_comment
)
end
end
end
end
end
end
...
...
qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
View file @
ee685e22
...
@@ -14,7 +14,7 @@ module QA
...
@@ -14,7 +14,7 @@ module QA
resource
.
description
=
'project for issue suggestions'
resource
.
description
=
'project for issue suggestions'
end
end
Resource
::
Issue
.
fabricate_via_
browser_u
i!
do
|
issue
|
Resource
::
Issue
.
fabricate_via_
ap
i!
do
|
issue
|
issue
.
title
=
issue_title
issue
.
title
=
issue_title
issue
.
project
=
project
issue
.
project
=
project
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