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
25a3b7fa
Commit
25a3b7fa
authored
Aug 30, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more navigation spec fixes
parent
aab5d550
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
features/steps/explore/projects.rb
features/steps/explore/projects.rb
+2
-2
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+3
-3
spec/features/merge_requests/user_posts_diff_notes_spec.rb
spec/features/merge_requests/user_posts_diff_notes_spec.rb
+2
-2
No files found.
features/steps/explore/projects.rb
View file @
25a3b7fa
...
@@ -36,13 +36,13 @@ class Spinach::Features::ExploreProjects < Spinach::FeatureSteps
...
@@ -36,13 +36,13 @@ class Spinach::Features::ExploreProjects < Spinach::FeatureSteps
end
end
step
'I should see project "Community" home page'
do
step
'I should see project "Community" home page'
do
page
.
within
'.
navbar-gitlab
.title'
do
page
.
within
'.
breadcrumbs
.title'
do
expect
(
page
).
to
have_content
'Community'
expect
(
page
).
to
have_content
'Community'
end
end
end
end
step
'I should see project "Internal" home page'
do
step
'I should see project "Internal" home page'
do
page
.
within
'.
navbar-gitlab
.title'
do
page
.
within
'.
breadcrumbs
.title'
do
expect
(
page
).
to
have_content
'Internal'
expect
(
page
).
to
have_content
'Internal'
end
end
end
end
...
...
features/steps/project/active_tab.rb
View file @
25a3b7fa
...
@@ -34,13 +34,13 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -34,13 +34,13 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
end
end
step
'I click the "Repository" tab'
do
step
'I click the "Repository" tab'
do
page
.
within
'.
nav-sidebar
'
do
page
.
within
'.
sidebar-top-level-items > .active
'
do
click_link
(
'Repository'
)
click_link
(
'Repository'
)
end
end
end
end
step
'I click the "Activity" tab'
do
step
'I click the "Activity" tab'
do
page
.
within
'.
nav-sidebar
'
do
page
.
within
'.
sidebar-top-level-items > .active
'
do
click_link
(
'Activity'
)
click_link
(
'Activity'
)
end
end
end
end
...
@@ -82,7 +82,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -82,7 +82,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
end
end
step
'I click the "Charts" tab'
do
step
'I click the "Charts" tab'
do
page
.
within
'.nav-sidebar'
do
page
.
within
(
'.sidebar-top-level-items > .active'
)
do
click_link
(
'Charts'
)
click_link
(
'Charts'
)
end
end
end
end
...
...
spec/features/merge_requests/user_posts_diff_notes_spec.rb
View file @
25a3b7fa
...
@@ -6,6 +6,8 @@ feature 'Merge requests > User posts diff notes', :js do
...
@@ -6,6 +6,8 @@ feature 'Merge requests > User posts diff notes', :js do
let
(
:project
)
{
merge_request
.
source_project
}
let
(
:project
)
{
merge_request
.
source_project
}
before
do
before
do
allow_any_instance_of
(
ApplicationHelper
).
to
receive
(
:collapsed_sidebar?
).
and_return
(
true
)
project
.
add_developer
(
user
)
project
.
add_developer
(
user
)
sign_in
(
user
)
sign_in
(
user
)
end
end
...
@@ -17,8 +19,6 @@ feature 'Merge requests > User posts diff notes', :js do
...
@@ -17,8 +19,6 @@ feature 'Merge requests > User posts diff notes', :js do
context
'when hovering over a parallel view diff file'
do
context
'when hovering over a parallel view diff file'
do
before
do
before
do
allow_any_instance_of
(
ApplicationHelper
).
to
receive
(
:collapsed_sidebar?
).
and_return
(
true
)
visit
diffs_project_merge_request_path
(
project
,
merge_request
,
view:
'parallel'
)
visit
diffs_project_merge_request_path
(
project
,
merge_request
,
view:
'parallel'
)
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