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
f67dbc4c
Commit
f67dbc4c
authored
Oct 24, 2019
by
Walmyr Lima e Silva Filho
Committed by
Ramya Authappan
Oct 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify test that attaches a file on an issue
parent
bcdc423d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
qa/qa/page/project/issue/show.rb
qa/qa/page/project/issue/show.rb
+4
-0
qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb
...ecs/features/browser_ui/2_plan/issue/create_issue_spec.rb
+3
-10
No files found.
qa/qa/page/project/issue/show.rb
View file @
f67dbc4c
...
@@ -108,6 +108,10 @@ module QA
...
@@ -108,6 +108,10 @@ module QA
find_element
(
:more_assignees_link
)
find_element
(
:more_assignees_link
)
end
end
def
noteable_note_item
find_element
(
:noteable_note_item
)
end
def
select_all_activities_filter
def
select_all_activities_filter
select_filter_with_text
(
'Show all activity'
)
select_filter_with_text
(
'Show all activity'
)
end
end
...
...
qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb
View file @
f67dbc4c
...
@@ -21,8 +21,9 @@ module QA
...
@@ -21,8 +21,9 @@ module QA
end
end
context
'when using attachments in comments'
,
:object_storage
do
context
'when using attachments in comments'
,
:object_storage
do
let
(
:gif_file_name
)
{
'banana_sample.gif'
}
let
(
:file_to_attach
)
do
let
(
:file_to_attach
)
do
File
.
absolute_path
(
File
.
join
(
'spec'
,
'fixtures'
,
'banana_sample.gif'
))
File
.
absolute_path
(
File
.
join
(
'spec'
,
'fixtures'
,
gif_file_name
))
end
end
before
do
before
do
...
@@ -37,15 +38,7 @@ module QA
...
@@ -37,15 +38,7 @@ module QA
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
)
show
.
refresh
expect
(
show
.
noteable_note_item
.
find
(
"img[src$='
#{
gif_file_name
}
']"
)).
to
be_visible
image_url
=
find
(
'a[href$="banana_sample.gif"]'
)[
:href
]
found
=
show
.
wait
(
reload:
false
)
do
show
.
asset_exists?
(
image_url
)
end
expect
(
found
).
to
be_truthy
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