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
e16d9395
Commit
e16d9395
authored
Nov 13, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify test by not calling the same class twice
Also, wrapping assertions inside the same block.
parent
fb72ef07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_file_template_spec.rb
.../ee/browser_ui/1_manage/group/group_file_template_spec.rb
+7
-7
No files found.
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_file_template_spec.rb
View file @
e16d9395
...
...
@@ -87,16 +87,16 @@ module QA
Page
::
Project
::
Show
.
perform
(
&
:create_new_file!
)
Page
::
File
::
Form
.
perform
do
|
form
|
form
.
select_template
template
[
:type
],
template
[
:template
]
end
expect
(
page
).
to
have_content
(
template
[
:content
])
expect
(
form
).
to
have_content
(
template
[
:content
])
Page
::
File
::
Form
.
perform
(
&
:commit_changes
)
form
.
commit_changes
expect
(
page
).
to
have_content
(
'The file has been successfully created.'
)
expect
(
page
).
to
have_content
(
template
[
:type
])
expect
(
page
).
to
have_content
(
'Add new file'
)
expect
(
page
).
to
have_content
(
template
[
:content
])
expect
(
form
).
to
have_content
(
'The file has been successfully created.'
)
expect
(
form
).
to
have_content
(
template
[
:type
])
expect
(
form
).
to
have_content
(
'Add new file'
)
expect
(
form
).
to
have_content
(
template
[
:content
])
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