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
3f9cee9a
Commit
3f9cee9a
authored
Aug 08, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Profile > Preferences feature specs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
b612a47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
spec/features/profiles/preferences_spec.rb
spec/features/profiles/preferences_spec.rb
+16
-12
No files found.
spec/features/profiles/preferences_spec.rb
View file @
3f9cee9a
require
'spec_helper'
require
'spec_helper'
describe
'Profile > Preferences'
do
describe
'Profile > Preferences'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
before
do
...
@@ -8,28 +8,32 @@ describe 'Profile > Preferences' do
...
@@ -8,28 +8,32 @@ describe 'Profile > Preferences' do
visit
profile_preferences_path
visit
profile_preferences_path
end
end
describe
'User changes their syntax highlighting theme'
,
js:
true
do
describe
'User changes their syntax highlighting theme'
do
it
'creates a flash message'
do
it
'creates a flash message'
do
choose
'user_color_scheme_id_5'
choose
'user_color_scheme_id_5'
wait_for_requests
expect_preferences_saved_message
expect_preferences_saved_message
end
end
it
'updates their preference'
do
it
'updates their preference'
do
choose
'user_color_scheme_id_5'
choose
'user_color_scheme_id_5'
allowing_for_delay
do
wait_for_requests
visit
page
.
current_pat
h
refres
h
expect
(
page
).
to
have_checked_field
(
'user_color_scheme_id_5'
)
e
nd
e
xpect
(
page
).
to
have_checked_field
(
'user_color_scheme_id_5'
)
end
end
end
end
describe
'User changes their default dashboard'
,
js:
true
do
describe
'User changes their default dashboard'
do
it
'creates a flash message'
do
it
'creates a flash message'
do
select
'Starred Projects'
,
from:
'user_dashboard'
select
'Starred Projects'
,
from:
'user_dashboard'
click_button
'Save'
click_button
'Save'
wait_for_requests
expect_preferences_saved_message
expect_preferences_saved_message
end
end
...
@@ -37,12 +41,12 @@ describe 'Profile > Preferences' do
...
@@ -37,12 +41,12 @@ describe 'Profile > Preferences' do
select
'Starred Projects'
,
from:
'user_dashboard'
select
'Starred Projects'
,
from:
'user_dashboard'
click_button
'Save'
click_button
'Save'
allowing_for_delay
do
wait_for_requests
find
(
'#logo'
).
click
find
(
'#logo'
).
click
expect
(
page
).
to
have_content
(
"You don't have starred projects yet"
)
expect
(
page
).
to
have_content
(
"You don't have starred projects yet"
)
expect
(
page
.
current_path
).
to
eq
starred_dashboard_projects_path
expect
(
page
.
current_path
).
to
eq
starred_dashboard_projects_path
end
find
(
'.shortcuts-activity'
).
trigger
(
'click'
)
find
(
'.shortcuts-activity'
).
trigger
(
'click'
)
...
...
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