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
4871cb7a
Commit
4871cb7a
authored
7 years ago
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New ... Menu Feature Tests
parent
ebd0767f
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
28 deletions
+113
-28
features/dashboard/new_project_menu.feature
features/dashboard/new_project_menu.feature
+0
-11
features/explore/new_menu.feature
features/explore/new_menu.feature
+42
-0
features/steps/dashboard/new_project_top_menu.rb
features/steps/dashboard/new_project_top_menu.rb
+0
-17
features/steps/explore/new_menu.rb
features/steps/explore/new_menu.rb
+71
-0
No files found.
features/dashboard/new_project_menu.feature
deleted
100644 → 0
View file @
ebd0767f
@dashboard
Feature
:
New Project 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
This diff is collapsed.
Click to expand it.
features/explore/new_menu.feature
0 → 100644
View file @
4871cb7a
@explore
Feature
:
New Menu
Background
:
Given
I sign in as a user
And
I own project
"Shop"
And
I visit dashboard page
@javascript
Scenario
:
I
should see New Projects page
When
I visit dashboard page
And
I click
"New project"
in top right menu
Then
I see
"New Project"
page
@javascript
Scenario
:
I
should see New Group page
When
I visit dashboard page
And
I click
"New group"
in top right menu
Then
I see
"New Group"
page
@javascript
Scenario
:
I
should see New Snippet page
When
I visit dashboard page
And
I click
"New snippet"
in top right menu
Then
I see
"New Snippet"
page
@javascript
Scenario
:
I
should see New Issue page
When
I visit project
"Shop"
page
And
I click
"New issue"
in top right menu
Then
I see
"New Issue"
page
@javascript
Scenario
:
I
should see New Merge Request page
When
I visit project
"Shop"
page
And
I click
"New merge request"
in top right menu
Then
I see
"New Merge Request"
page
@javascript
Scenario
:
I
should see New Project Snippet page
When
I visit project
"Shop"
page
And
I click
"New snippet"
in top right menu
Then
I see
"New Snippet"
page
This diff is collapsed.
Click to expand it.
features/steps/dashboard/new_project_top_menu.rb
deleted
100644 → 0
View file @
ebd0767f
class
Spinach::Features::NewProjectTopMenu
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedProject
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
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project name'
)
end
end
This diff is collapsed.
Click to expand it.
features/steps/explore/new_menu.rb
0 → 100644
View file @
4871cb7a
class
Spinach::Features::NewMenu
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedProject
step
'I click "New project" in top right menu'
do
page
.
within
'.header-content'
do
find
(
'.header-new-dropdown-toggle'
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.header-new.dropdown.open'
,
count:
1
)
click_link
"New project"
end
end
step
'I click "New group" in top right menu'
do
page
.
within
'.header-content'
do
find
(
'.header-new-dropdown-toggle'
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.header-new.dropdown.open'
,
count:
1
)
click_link
"New group"
end
end
step
'I click "New snippet" in top right menu'
do
page
.
within
'.header-content'
do
find
(
'.header-new-dropdown-toggle'
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.header-new.dropdown.open'
,
count:
1
)
click_link
"New snippet"
end
end
step
'I click "New issue" in top right menu'
do
page
.
within
'.header-content'
do
find
(
'.header-new-dropdown-toggle'
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.header-new.dropdown.open'
,
count:
1
)
click_link
"New issue"
end
end
step
'I click "New merge request" in top right menu'
do
page
.
within
'.header-content'
do
find
(
'.header-new-dropdown-toggle'
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.header-new.dropdown.open'
,
count:
1
)
click_link
"New merge request"
end
end
step
'I see "New Project" page'
do
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project name'
)
end
step
'I see "New Group" page'
do
expect
(
page
).
to
have_content
(
'Group path'
)
expect
(
page
).
to
have_content
(
'Group name'
)
end
step
'I see "New Snippet" page'
do
expect
(
page
).
to
have_content
(
'New Snippet'
)
expect
(
page
).
to
have_content
(
'Title'
)
end
step
'I see "New Issue" page'
do
expect
(
page
).
to
have_content
(
'New Issue'
)
expect
(
page
).
to
have_content
(
'Title'
)
end
step
'I see "New Merge Request" page'
do
expect
(
page
).
to
have_content
(
'New Merge Request'
)
expect
(
page
).
to
have_content
(
'Source branch'
)
expect
(
page
).
to
have_content
(
'Target branch'
)
end
end
This diff is collapsed.
Click to expand it.
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