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
Boxiang Sun
gitlab-ce
Commits
288b2e71
Commit
288b2e71
authored
Jun 06, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added First Test for top right menu
parent
e05e530f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
features/dashboard/new_project_menu.feature
features/dashboard/new_project_menu.feature
+11
-0
features/steps/dashboard/new_project.rb
features/steps/dashboard/new_project.rb
+6
-0
No files found.
features/dashboard/new_project_menu.feature
0 → 100644
View file @
288b2e71
@dashboard
Feature
:
New Project through top menu
Background
:
Given
I sign in as a user
And
I own project
"Shop"
And
I visit dashboard page
And
I click
"New project"
in top right menu
@javascript
Scenario
:
I
should see New Projects page
Then
I see
"New Project"
page
features/steps/dashboard/new_project.rb
View file @
288b2e71
...
@@ -9,6 +9,12 @@ class Spinach::Features::NewProject < Spinach::FeatureSteps
...
@@ -9,6 +9,12 @@ class Spinach::Features::NewProject < Spinach::FeatureSteps
end
end
end
end
step
'I click "New project" in top right menu'
do
page
.
within
'.header-content'
do
click_link
"New project"
end
end
step
'I see "New Project" page'
do
step
'I see "New Project" page'
do
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project name'
)
expect
(
page
).
to
have_content
(
'Project name'
)
...
...
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