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
dfc1b31f
Commit
dfc1b31f
authored
Jun 24, 2019
by
Martin Wortschack
Committed by
Jan Provaznik
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additonal specs for onboarding
parent
94c60821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
ee/spec/features/onboarding/user_onboarding_spec.rb
ee/spec/features/onboarding/user_onboarding_spec.rb
+32
-1
No files found.
ee/spec/features/onboarding/user_onboarding_spec.rb
View file @
dfc1b31f
...
...
@@ -29,7 +29,7 @@ describe 'User Onboarding' do
end
end
context
'welcome page'
do
describe
'welcome page'
do
before
do
allow
(
Project
).
to
receive
(
:find_by_full_path
).
and_return
(
project
)
project
.
add_guest
(
user
)
...
...
@@ -41,6 +41,21 @@ describe 'User Onboarding' do
expect
(
page
).
to
have_content
(
'Welcome to the Guided GitLab Tour'
)
end
end
describe
'onboarding helper'
do
before
do
allow
(
Project
).
to
receive
(
:find_by_full_path
).
and_return
(
project
)
project
.
add_guest
(
user
)
end
it
'shows the onboarding helper on the onboarding project'
do
visit
explore_onboarding_index_path
find
(
'.btn-success'
).
click
expect
(
page
).
to
have_css
(
'#js-onboarding-helper'
,
visible:
true
)
end
end
end
context
'when the feature is disabled'
do
...
...
@@ -59,5 +74,21 @@ describe 'User Onboarding' do
end
end
end
describe
'welcome page'
do
it
'does not show the "Learn GitLab" welcome page'
do
visit
explore_onboarding_index_path
expect
(
page
).
not_to
have_content
(
'Welcome to the Guided GitLab Tour'
)
end
end
describe
'onboarding helper'
do
it
'does not show the onboarding helper on the onboarding project'
do
visit
project_path
(
project
)
expect
(
page
).
not_to
have_css
(
'#js-onboarding-helper'
)
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