BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
099928ad
Commit
099928ad
authored
Sep 19, 2017
by
Rémy Coutable
Committed by
Stan Hu
Oct 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'acey-flakes' into 'master'
fix transient user_edits_files_spec failures See merge request gitlab-org/gitlab-ce!14324
parent
693285ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
user_edits_files_spec.rb
spec/features/projects/user_edits_files_spec.rb
+13
-1
No files found.
spec/features/projects/user_edits_files_spec.rb
View file @
099928ad
...
...
@@ -24,6 +24,8 @@ describe 'User edits files' do
it
'inserts a content of a file'
,
js:
true
do
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.file-editor'
,
match: :first
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
expect
(
evaluate_script
(
'ace.edit("editor").getValue()'
)).
to
eq
(
'*.rbca'
)
...
...
@@ -39,6 +41,8 @@ describe 'User edits files' do
it
'commits an edited file'
,
js:
true
do
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.file-editor'
,
match: :first
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
click_button
(
'Commit changes'
)
...
...
@@ -53,6 +57,8 @@ describe 'User edits files' do
it
'commits an edited file to a new branch'
,
js:
true
do
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.file-editor'
,
match: :first
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
fill_in
(
:branch_name
,
with:
'new_branch_name'
,
visible:
true
)
...
...
@@ -62,13 +68,14 @@ describe 'User edits files' do
click_link
(
'Changes'
)
wait_for_requests
expect
(
page
).
to
have_content
(
'*.rbca'
)
end
it
'shows the diff of an edited file'
,
js:
true
do
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.file-editor'
,
match: :first
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
click_link
(
'Preview changes'
)
...
...
@@ -93,6 +100,8 @@ describe 'User edits files' do
expect
(
page
).
to
have_content
(
fork_message
)
find
(
'.file-editor'
,
match: :first
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
expect
(
evaluate_script
(
'ace.edit("editor").getValue()'
)).
to
eq
(
'*.rbca'
)
...
...
@@ -106,6 +115,9 @@ describe 'User edits files' do
expect
(
page
).
to
have_button
(
'Cancel'
)
click_link
(
'Fork'
)
find
(
'.file-editor'
,
match: :first
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
click_button
(
'Commit changes'
)
...
...
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