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
b6251af4
Commit
b6251af4
authored
Nov 18, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix feature spec.
parent
95139a65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
30 deletions
+14
-30
features/project/source/browse_files.feature
features/project/source/browse_files.feature
+7
-7
features/steps/project/source/browse_files.rb
features/steps/project/source/browse_files.rb
+7
-23
No files found.
features/project/source/browse_files.feature
View file @
b6251af4
...
...
@@ -42,7 +42,7 @@ Feature: Project Source Browse Files
And
I fill the new branch name
And
I click on
"Upload file"
Then
I can see the new text file
And
I am redirected to the
uploaded file on new branch
And
I am redirected to the
new merge request page
And
I can see the new commit message
@javascript
...
...
@@ -64,7 +64,7 @@ Feature: Project Source Browse Files
And
I fill the commit message
And
I fill the new branch name
And
I click on
"Commit Changes"
Then
I am redirected to the new
file on new branch
Then
I am redirected to the new
merge request page
And
I should see its new content
@javascript
...
...
@@ -134,7 +134,7 @@ Feature: Project Source Browse Files
And
I fill the commit message
And
I fill the new branch name
And
I click on
"Commit Changes"
Then
I am redirected to the
".gitignore"
on new branch
Then
I am redirected to the
new merge request page
And
I should see its new content
@javascript
@wip
...
...
@@ -154,7 +154,7 @@ Feature: Project Source Browse Files
And
I fill the commit message
And
I fill the new branch name
And
I click on
"Create directory"
Then
I am redirected to the new
directory
Then
I am redirected to the new
merge request page
@javascript
Scenario
:
I
attempt to create an existing directory
...
...
@@ -174,12 +174,12 @@ Feature: Project Source Browse Files
Then
I see diff
@javascript
Scenario
:
I
can
remov
e file and commit
Scenario
:
I
can
delet
e file and commit
Given
I click on
".gitignore"
file in repo
And
I see the
".gitignore"
And
I click on
"
Remov
e"
And
I click on
"
Delet
e"
And
I fill the commit message
And
I click on
"
Remov
e file"
And
I click on
"
Delet
e file"
Then
I am redirected to the files URL
And
I don't see the
".gitignore"
...
...
features/steps/project/source/browse_files.rb
View file @
b6251af4
...
...
@@ -98,12 +98,12 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
click_button
'Create directory'
end
step
'I click on "
Remov
e"'
do
click_button
'
Remov
e'
step
'I click on "
Delet
e"'
do
click_button
'
Delet
e'
end
step
'I click on "
Remov
e file"'
do
click_button
'
Remov
e file'
step
'I click on "
Delet
e file"'
do
click_button
'
Delet
e file'
end
step
'I click on "Replace"'
do
...
...
@@ -142,7 +142,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end
step
'I can see new file page'
do
expect
(
page
).
to
have_content
"
new f
ile"
expect
(
page
).
to
have_content
"
Create New F
ile"
expect
(
page
).
to
have_content
"Commit message"
end
...
...
@@ -225,10 +225,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
expect
(
current_path
).
to
eq
(
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
'master/.gitignore'
))
end
step
'I am redirected to the ".gitignore" on new branch'
do
expect
(
current_path
).
to
eq
(
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
'new_branch_name/.gitignore'
))
end
step
'I am redirected to the permalink URL'
do
expect
(
current_path
).
to
(
eq
(
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
...
...
@@ -247,20 +243,8 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
@project
.
namespace
,
@project
,
'master/'
+
new_file_name_with_directory
))
end
step
'I am redirected to the new file on new branch'
do
expect
(
current_path
).
to
eq
(
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
'new_branch_name/'
+
new_file_name
))
end
step
'I am redirected to the uploaded file on new branch'
do
expect
(
current_path
).
to
eq
(
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
'new_branch_name/'
+
File
.
basename
(
test_text_file
)))
end
step
'I am redirected to the new directory'
do
expect
(
current_path
).
to
eq
(
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
'new_branch_name/'
+
new_dir_name
))
step
'I am redirected to the new merge request page'
do
expect
(
current_path
).
to
eq
(
new_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
))
end
step
'I am redirected to the root directory'
do
...
...
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