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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
40d8d7df
Commit
40d8d7df
authored
Sep 26, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature spec for managing appearance > favicon
parent
ff24be48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
spec/features/admin/admin_appearance_spec.rb
spec/features/admin/admin_appearance_spec.rb
+34
-0
No files found.
spec/features/admin/admin_appearance_spec.rb
View file @
40d8d7df
...
@@ -76,6 +76,40 @@ feature 'Admin Appearance' do
...
@@ -76,6 +76,40 @@ feature 'Admin Appearance' do
expect
(
page
).
not_to
have_css
(
header_logo_selector
)
expect
(
page
).
not_to
have_css
(
header_logo_selector
)
end
end
scenario
'Favicon'
do
sign_in
(
create
(
:admin
))
visit
admin_appearances_path
attach_file
(
:appearance_favicon
,
logo_fixture
)
click_button
'Save'
expect
(
page
).
to
have_css
(
'//img[data-src$="/default_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_canceled_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_created_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_failed_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_manual_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_not_found_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_pending_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_running_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_skipped_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_success_dk.ico"]'
)
expect
(
page
).
to
have_css
(
'//img[data-src$="/status_warning_dk.ico"]'
)
click_link
'Remove favicon'
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/default_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_canceled_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_created_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_failed_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_manual_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_not_found_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_pending_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_running_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_skipped_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_success_dk.ico"]'
)
expect
(
page
).
not_to
have_css
(
'//img[data-src$="/status_warning_dk.ico"]'
)
end
def
expect_custom_sign_in_appearance
(
appearance
)
def
expect_custom_sign_in_appearance
(
appearance
)
expect
(
page
).
to
have_content
appearance
.
title
expect
(
page
).
to
have_content
appearance
.
title
expect
(
page
).
to
have_content
appearance
.
description
expect
(
page
).
to
have_content
appearance
.
description
...
...
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