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
Kazuhiko Shiozaki
gitlab-ce
Commits
358d7eff
Commit
358d7eff
authored
Oct 12, 2012
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WebEditor: spinach
parent
42bdfd02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
features/project/source/browse_files.feature
features/project/source/browse_files.feature
+6
-0
features/steps/project/project_browse_files.rb
features/steps/project/project_browse_files.rb
+10
-0
No files found.
features/project/source/browse_files.feature
View file @
358d7eff
...
...
@@ -19,3 +19,9 @@ Feature: Project Browse files
Given
I visit blob file from repo
And
I click link
"raw"
Then
I should see raw file content
@javascript
Scenario
:
I
can edit file
Given
I click on
"Gemfile"
file in repo
And
I click button
"Edit"
Then
I can edit file
features/steps/project/project_browse_files.rb
View file @
358d7eff
...
...
@@ -31,4 +31,14 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
Then
'I should see raw file content'
do
page
.
source
.
should
==
ValidCommit
::
BLOB_FILE
end
Given
'I click button "Edit"'
do
click_link
'Edit'
end
Given
'I can edit file'
do
page
.
execute_script
(
'editor.setValue("GitlabFileEditor")'
)
page
.
evaluate_script
(
'editor.getValue()'
).
should
==
"GitlabFileEditor"
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