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
76201592
Commit
76201592
authored
Jul 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
9ebb32d6
66394bd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
23 deletions
+28
-23
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
+12
-11
qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb
...ecs/features/browser_ui/2_plan/issue/create_issue_spec.rb
+16
-12
No files found.
qa/qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb
View file @
76201592
...
@@ -3,31 +3,32 @@
...
@@ -3,31 +3,32 @@
module
QA
module
QA
context
'Plan'
do
context
'Plan'
do
describe
'collapse comments in issue discussions'
do
describe
'collapse comments in issue discussions'
do
let
(
:
issue_title
)
{
'issue title
'
}
let
(
:
my_first_reply
)
{
'My first reply
'
}
it
'user collapses reply for comments in an issue'
do
before
do
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
)
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
title
=
issue_title
issue
.
title
=
'issue title'
end
end
issue
.
visit!
issue
.
visit!
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_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
)
page
.
assert_text
(
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
)
page
.
assert_text
(
my_first_reply
)
end
end
it
'user collapses and expands reply for comments in an issue'
do
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show_page
|
one_reply
=
"1 reply"
show_page
.
collapse_replies
show_page
.
collapse_replies
expect
(
show_page
).
to
have_content
(
one_reply
)
expect
(
show_page
).
to
have_content
(
one_reply
)
...
...
qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb
View file @
76201592
...
@@ -5,8 +5,15 @@ module QA
...
@@ -5,8 +5,15 @@ module QA
describe
'Issue creation'
do
describe
'Issue creation'
do
let
(
:issue_title
)
{
'issue title'
}
let
(
:issue_title
)
{
'issue title'
}
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
end
it
'user creates an issue'
do
it
'user creates an issue'
do
create_issue
Resource
::
Issue
.
fabricate_via_browser_ui!
do
|
issue
|
issue
.
title
=
issue_title
end
Page
::
Project
::
Menu
.
perform
(
&
:click_issues
)
Page
::
Project
::
Menu
.
perform
(
&
:click_issues
)
...
@@ -18,9 +25,15 @@ module QA
...
@@ -18,9 +25,15 @@ module QA
File
.
absolute_path
(
File
.
join
(
'spec'
,
'fixtures'
,
'banana_sample.gif'
))
File
.
absolute_path
(
File
.
join
(
'spec'
,
'fixtures'
,
'banana_sample.gif'
))
end
end
it
'user comments on an issue with an attachment'
do
before
do
create_issue
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
title
=
issue_title
end
issue
.
visit!
end
it
'user comments on an issue with an attachment'
do
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
show
.
comment
(
'See attached banana for scale'
,
attachment:
file_to_attach
)
show
.
comment
(
'See attached banana for scale'
,
attachment:
file_to_attach
)
...
@@ -36,15 +49,6 @@ module QA
...
@@ -36,15 +49,6 @@ module QA
end
end
end
end
end
end
def
create_issue
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Resource
::
Issue
.
fabricate_via_browser_ui!
do
|
issue
|
issue
.
title
=
issue_title
end
end
end
end
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