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
db2109b0
Commit
db2109b0
authored
Jun 02, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more tests with new Code tab
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7cfb445c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
features/project/shortcuts.feature
features/project/shortcuts.feature
+5
-3
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+0
-8
features/steps/project/project_find_file.rb
features/steps/project/project_find_file.rb
+2
-2
features/steps/shared/project_tab.rb
features/steps/shared/project_tab.rb
+8
-0
No files found.
features/project/shortcuts.feature
View file @
db2109b0
...
@@ -8,19 +8,21 @@ Feature: Project Shortcuts
...
@@ -8,19 +8,21 @@ Feature: Project Shortcuts
@javascript
@javascript
Scenario
:
Navigate to files tab
Scenario
:
Navigate to files tab
Given
I press
"g"
and
"f"
Given
I press
"g"
and
"f"
Then
the active main tab should be Files
Then
the active main tab should be Code
Then
the active sub tab should be Files
@javascript
@javascript
Scenario
:
Navigate to commits tab
Scenario
:
Navigate to commits tab
Given
I visit my project's files page
Given
I visit my project's files page
Given
I press
"g"
and
"c"
Given
I press
"g"
and
"c"
Then
the active main tab should be Commits
Then
the active main tab should be Code
Then
the active sub tab should be Commits
@javascript
@javascript
Scenario
:
Navigate to network tab
Scenario
:
Navigate to network tab
Given
I press
"g"
and
"n"
Given
I press
"g"
and
"n"
Then
the active sub tab should be Network
Then
the active sub tab should be Network
And
the active main tab should be Co
mmits
And
the active main tab should be Co
de
@javascript
@javascript
Scenario
:
Navigate to graphs tab
Scenario
:
Navigate to graphs tab
...
...
features/steps/project/active_tab.rb
View file @
db2109b0
...
@@ -63,14 +63,6 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -63,14 +63,6 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
click_link
(
'Tags'
)
click_link
(
'Tags'
)
end
end
step
'the active sub tab should be Files'
do
ensure_active_sub_tab
(
'Files'
)
end
step
'the active sub tab should be Commits'
do
ensure_active_sub_tab
(
'Commits'
)
end
step
'the active sub tab should be Compare'
do
step
'the active sub tab should be Compare'
do
ensure_active_sub_tab
(
'Compare'
)
ensure_active_sub_tab
(
'Compare'
)
end
end
...
...
features/steps/project/project_find_file.rb
View file @
db2109b0
...
@@ -13,12 +13,12 @@ class Spinach::Features::ProjectFindFile < Spinach::FeatureSteps
...
@@ -13,12 +13,12 @@ class Spinach::Features::ProjectFindFile < Spinach::FeatureSteps
end
end
step
'I should see "find file" page'
do
step
'I should see "find file" page'
do
ensure_active_main_tab
(
'
Files
'
)
ensure_active_main_tab
(
'
Code
'
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
end
end
step
'I fill in Find by path with "git"'
do
step
'I fill in Find by path with "git"'
do
ensure_active_main_tab
(
'
Files
'
)
ensure_active_main_tab
(
'
Code
'
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
end
end
...
...
features/steps/shared/project_tab.rb
View file @
db2109b0
...
@@ -47,4 +47,12 @@ module SharedProjectTab
...
@@ -47,4 +47,12 @@ module SharedProjectTab
step
'the active sub tab should be Network'
do
step
'the active sub tab should be Network'
do
ensure_active_sub_tab
(
'Network'
)
ensure_active_sub_tab
(
'Network'
)
end
end
step
'the active sub tab should be Files'
do
ensure_active_sub_tab
(
'Files'
)
end
step
'the active sub tab should be Commits'
do
ensure_active_sub_tab
(
'Commits'
)
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