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
Jérome Perrin
gitlab-ce
Commits
903e1a30
Commit
903e1a30
authored
Aug 30, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spinach test updates
parent
176b3498
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
17 deletions
+23
-17
features/steps/group/milestones.rb
features/steps/group/milestones.rb
+3
-1
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+8
-8
features/steps/project/fork.rb
features/steps/project/fork.rb
+1
-1
features/steps/project/issues/issues.rb
features/steps/project/issues/issues.rb
+1
-1
features/steps/project/issues/milestones.rb
features/steps/project/issues/milestones.rb
+3
-1
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+1
-1
features/steps/project/project_milestone.rb
features/steps/project/project_milestone.rb
+1
-1
features/steps/project/redirects.rb
features/steps/project/redirects.rb
+1
-1
features/steps/shared/project_tab.rb
features/steps/shared/project_tab.rb
+1
-1
spec/features/merge_requests/diffs_spec.rb
spec/features/merge_requests/diffs_spec.rb
+1
-1
spec/features/merge_requests/user_posts_diff_notes_spec.rb
spec/features/merge_requests/user_posts_diff_notes_spec.rb
+2
-0
No files found.
features/steps/group/milestones.rb
View file @
903e1a30
...
@@ -47,7 +47,9 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
...
@@ -47,7 +47,9 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
end
end
step
'I click new milestone button'
do
step
'I click new milestone button'
do
click_link
"New milestone"
page
.
within
(
'.breadcrumbs'
)
do
click_link
"New milestone"
end
end
end
step
'I press create mileston button'
do
step
'I press create mileston button'
do
...
...
features/steps/project/active_tab.rb
View file @
903e1a30
...
@@ -22,25 +22,25 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -22,25 +22,25 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
end
end
step
'I click the "Edit Project"'
do
step
'I click the "Edit Project"'
do
page
.
within
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
(
'Edit Project'
)
click_link
(
'Edit Project'
)
end
end
end
end
step
'I click the "Integrations" tab'
do
step
'I click the "Integrations" tab'
do
page
.
within
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
(
'Integrations'
)
click_link
(
'Integrations'
)
end
end
end
end
step
'I click the "Repository" tab'
do
step
'I click the "Repository" tab'
do
page
.
within
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
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
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
(
'Activity'
)
click_link
(
'Activity'
)
end
end
end
end
...
@@ -72,7 +72,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -72,7 +72,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
end
end
step
'I click the "Branches" tab'
do
step
'I click the "Branches" tab'
do
page
.
within
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
(
'Branches'
)
click_link
(
'Branches'
)
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
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
(
'Charts'
)
click_link
(
'Charts'
)
end
end
end
end
...
@@ -102,13 +102,13 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -102,13 +102,13 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
# Sub Tabs: Issues
# Sub Tabs: Issues
step
'I click the "Milestones" sub tab'
do
step
'I click the "Milestones" sub tab'
do
page
.
within
(
'.
sub-nav
'
)
do
page
.
within
(
'.
nav-sidebar
'
)
do
click_link
(
'Milestones'
)
click_link
(
'Milestones'
)
end
end
end
end
step
'I click the "Labels" sub tab'
do
step
'I click the "Labels" sub tab'
do
page
.
within
(
'.
sub-nav
'
)
do
page
.
within
(
'.
nav-sidebar
'
)
do
click_link
(
'Labels'
)
click_link
(
'Labels'
)
end
end
end
end
...
...
features/steps/project/fork.rb
View file @
903e1a30
...
@@ -36,7 +36,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
...
@@ -36,7 +36,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
end
end
step
'I goto the Merge Requests page'
do
step
'I goto the Merge Requests page'
do
page
.
within
'.
layout-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
"Merge Requests"
click_link
"Merge Requests"
end
end
end
end
...
...
features/steps/project/issues/issues.rb
View file @
903e1a30
...
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
...
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
end
step
'I click link "New issue"'
do
step
'I click link "New issue"'
do
page
.
within
'
#content-body
'
do
page
.
within
'
.breadcrumbs
'
do
page
.
has_link?
(
'New Issue'
)
?
click_link
(
'New Issue'
)
:
click_link
(
'New issue'
)
page
.
has_link?
(
'New Issue'
)
?
click_link
(
'New Issue'
)
:
click_link
(
'New issue'
)
end
end
end
end
...
...
features/steps/project/issues/milestones.rb
View file @
903e1a30
...
@@ -16,7 +16,9 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
...
@@ -16,7 +16,9 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
end
end
step
'I click link "New Milestone"'
do
step
'I click link "New Milestone"'
do
click_link
"New milestone"
page
.
within
(
'.breadcrumbs'
)
do
click_link
"New milestone"
end
end
end
step
'I submit new milestone "v2.3"'
do
step
'I submit new milestone "v2.3"'
do
...
...
features/steps/project/merge_requests.rb
View file @
903e1a30
...
@@ -14,7 +14,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -14,7 +14,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I click link "New Merge Request"'
do
step
'I click link "New Merge Request"'
do
page
.
within
'
#content-body
'
do
page
.
within
'
.breadcrumbs
'
do
page
.
has_link?
(
'New Merge Request'
)
?
click_link
(
"New Merge Request"
)
:
click_link
(
'New merge request'
)
page
.
has_link?
(
'New Merge Request'
)
?
click_link
(
"New Merge Request"
)
:
click_link
(
'New merge request'
)
end
end
end
end
...
...
features/steps/project/project_milestone.rb
View file @
903e1a30
...
@@ -55,7 +55,7 @@ class Spinach::Features::ProjectMilestone < Spinach::FeatureSteps
...
@@ -55,7 +55,7 @@ class Spinach::Features::ProjectMilestone < Spinach::FeatureSteps
end
end
step
'I click link "Labels"'
do
step
'I click link "Labels"'
do
page
.
within
(
'.
layout-nav .nav-links
'
)
do
page
.
within
(
'.
nav-sidebar
'
)
do
page
.
find
(
:xpath
,
"//a[@href='#tab-labels']"
).
click
page
.
find
(
:xpath
,
"//a[@href='#tab-labels']"
).
click
end
end
end
end
...
...
features/steps/project/redirects.rb
View file @
903e1a30
...
@@ -18,7 +18,7 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps
...
@@ -18,7 +18,7 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps
step
'I should see project "Community" home page'
do
step
'I should see project "Community" home page'
do
Gitlab
.
config
.
gitlab
.
should_receive
(
:host
).
and_return
(
"www.example.com"
)
Gitlab
.
config
.
gitlab
.
should_receive
(
:host
).
and_return
(
"www.example.com"
)
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
...
...
features/steps/shared/project_tab.rb
View file @
903e1a30
...
@@ -53,7 +53,7 @@ module SharedProjectTab
...
@@ -53,7 +53,7 @@ module SharedProjectTab
end
end
step
'the active sub tab should be Home'
do
step
'the active sub tab should be Home'
do
ensure_active_sub_tab
(
'
Home
'
)
ensure_active_sub_tab
(
'
Details
'
)
end
end
step
'the active sub tab should be Activity'
do
step
'the active sub tab should be Activity'
do
...
...
spec/features/merge_requests/diffs_spec.rb
View file @
903e1a30
...
@@ -88,7 +88,7 @@ feature 'Diffs URL', js: true do
...
@@ -88,7 +88,7 @@ feature 'Diffs URL', js: true do
visit
diffs_project_merge_request_path
(
project
,
merge_request
)
visit
diffs_project_merge_request_path
(
project
,
merge_request
)
# Throws `Capybara::Poltergeist::InvalidSelector` if we try to use `#hash` syntax
# Throws `Capybara::Poltergeist::InvalidSelector` if we try to use `#hash` syntax
find
(
"[id=
\"
#{
changelog_id
}
\"
] .js-edit-blob"
).
click
find
(
"[id=
\"
#{
changelog_id
}
\"
] .js-edit-blob"
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.js-fork-suggestion-button'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.js-fork-suggestion-button'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.js-cancel-fork-suggestion-button'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.js-cancel-fork-suggestion-button'
,
count:
1
)
...
...
spec/features/merge_requests/user_posts_diff_notes_spec.rb
View file @
903e1a30
...
@@ -17,6 +17,8 @@ feature 'Merge requests > User posts diff notes', :js do
...
@@ -17,6 +17,8 @@ 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