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
753ecbdc
Commit
753ecbdc
authored
Mar 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change spinach tab tests to fit new tabs navigation
parent
38ecec44
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
29 deletions
+38
-29
features/project/active_tab.feature
features/project/active_tab.feature
+30
-29
features/steps/project/project_active_tab.rb
features/steps/project/project_active_tab.rb
+4
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+4
-0
No files found.
features/project/active_tab.feature
View file @
753ecbdc
...
@@ -49,51 +49,52 @@ Feature: Project active tab
...
@@ -49,51 +49,52 @@ Feature: Project active tab
Scenario
:
On Project Home/Show
Scenario
:
On Project Home/Show
Given
I visit my project's home page
Given
I visit my project's home page
Then
the active sub tab should be Show
Then
the active main tab should be Home
And
no other sub tabs should be active
And
no other main tabs should be active
And
the active main tab should be Home
Scenario
:
On Project Home/Team
#Scenario: On Project Settings/Attachments
Given
I visit my project's home page
#
Given I visit my project's home page
And
I click the
"Team
"
tab
#And I click the "Attachments
" tab
Then
the active sub tab should be Team
#Then the active sub tab should be Attachments
And
no other sub tabs should be active
#
And no other sub tabs should be active
And
the active main tab should be Home
#
And the active main tab should be Home
Scenario
:
On Project Home/Attachmen
ts
#Scenario: On Project Settings/Snippe
ts
Given
I visit my project's home page
#
Given I visit my project's home page
And
I click the
"Attachmen
ts"
tab
#And I click the "Snippe
ts" tab
Then
the active sub tab should be Attachmen
ts
#Then the active sub tab should be Snippe
ts
And
no other sub tabs should be active
#
And no other sub tabs should be active
And
the active main tab should be Home
#
And the active main tab should be Home
Scenario
:
On Project Home/Snippets
# Sub Tabs: Settings
Given
I visit my project's home page
And
I click the
"Snippets"
tab
Scenario
:
On Project Settings/Team
Then
the active sub tab should be Snippets
Given
I visit my project's settings page
And
I click the
"Team"
tab
Then
the active sub tab should be Team
And
no other sub tabs should be active
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
Scenario
:
On Project
Home
/Edit
Scenario
:
On Project
Settings
/Edit
Given
I visit my project's
home
page
Given
I visit my project's
settings
page
And
I click the
"Edit"
tab
And
I click the
"Edit"
tab
Then
the active sub tab should be Edit
Then
the active sub tab should be Edit
And
no other sub tabs should be active
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
Scenario
:
On Project
Home
/Hooks
Scenario
:
On Project
Settings
/Hooks
Given
I visit my project's
home
page
Given
I visit my project's
settings
page
And
I click the
"Hooks"
tab
And
I click the
"Hooks"
tab
Then
the active sub tab should be Hooks
Then
the active sub tab should be Hooks
And
no other sub tabs should be active
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
Scenario
:
On Project
Home
/Deploy Keys
Scenario
:
On Project
Settings
/Deploy Keys
Given
I visit my project's
home
page
Given
I visit my project's
settings
page
And
I click the
"Deploy Keys"
tab
And
I click the
"Deploy Keys"
tab
Then
the active sub tab should be Deploy Keys
Then
the active sub tab should be Deploy Keys
And
no other sub tabs should be active
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
# Sub Tabs: Commits
# Sub Tabs: Commits
...
...
features/steps/project/project_active_tab.rb
View file @
753ecbdc
...
@@ -10,6 +10,10 @@ class ProjectActiveTab < Spinach::FeatureSteps
...
@@ -10,6 +10,10 @@ class ProjectActiveTab < Spinach::FeatureSteps
ensure_active_main_tab
(
'Home'
)
ensure_active_main_tab
(
'Home'
)
end
end
Then
'the active main tab should be Settings'
do
ensure_active_main_tab
(
'Settings'
)
end
Then
'the active main tab should be Files'
do
Then
'the active main tab should be Files'
do
ensure_active_main_tab
(
'Files'
)
ensure_active_main_tab
(
'Files'
)
end
end
...
...
features/steps/shared/paths.rb
View file @
753ecbdc
...
@@ -125,6 +125,10 @@ module SharedPaths
...
@@ -125,6 +125,10 @@ module SharedPaths
visit
project_path
(
@project
)
visit
project_path
(
@project
)
end
end
Given
"I visit my project's settings page"
do
visit
edit_project_path
(
@project
)
end
Given
"I visit my project's files page"
do
Given
"I visit my project's files page"
do
visit
project_tree_path
(
@project
,
root_ref
)
visit
project_tree_path
(
@project
,
root_ref
)
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