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
02d421c8
Commit
02d421c8
authored
Jul 02, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logo upload feature steps
parent
a1e47b70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
features/steps/admin/appearance.rb
features/steps/admin/appearance.rb
+4
-4
No files found.
features/steps/admin/appearance.rb
View file @
02d421c8
...
...
@@ -33,21 +33,21 @@ class Spinach::Features::AdminAppearance < Spinach::FeatureSteps
end
step
'I attach a logo'
do
attach_file
(
:appearance_logo
,
File
.
join
(
Rails
.
root
,
'public'
,
'gitlab_logo
.png'
))
attach_file
(
:appearance_logo
,
Rails
.
root
.
join
(
'spec'
,
'fixtures'
,
'dk
.png'
))
click_button
'Save'
end
step
'I attach header logos'
do
attach_file
(
:appearance_light_logo
,
File
.
join
(
Rails
.
root
,
'public'
,
'header_logo_light
.png'
))
attach_file
(
:appearance_light_logo
,
Rails
.
root
.
join
(
'spec'
,
'fixtures'
,
'dk
.png'
))
click_button
'Save'
end
step
'I should see a logo'
do
expect
(
page
).
to
have_xpath
(
'//img[@src="/uploads/appearance/logo/1/
gitlab_logo
.png"]'
)
expect
(
page
).
to
have_xpath
(
'//img[@src="/uploads/appearance/logo/1/
dk
.png"]'
)
end
step
'I should see header logos'
do
expect
(
page
).
to
have_xpath
(
'//img[@src="/uploads/appearance/light_logo/1/
header_logo_light
.png"]'
)
expect
(
page
).
to
have_xpath
(
'//img[@src="/uploads/appearance/light_logo/1/
dk
.png"]'
)
end
step
'I remove the logo'
do
...
...
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