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
885314b4
Commit
885314b4
authored
Aug 14, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'user-edit-files-spec-fix' into 'master'
Wait for requests to finish before running the ace JS Closes #36191 See merge request !13405
parents
21a6898b
3ba782d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
user_edits_files_spec.rb
spec/features/projects/user_edits_files_spec.rb
+17
-0
No files found.
spec/features/projects/user_edits_files_spec.rb
View file @
885314b4
...
@@ -20,6 +20,9 @@ describe 'User edits files' do
...
@@ -20,6 +20,9 @@ describe 'User edits files' do
it
'inserts a content of a file'
,
js:
true
do
it
'inserts a content of a file'
,
js:
true
do
click_link
(
'.gitignore'
)
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.js-edit-blob'
).
click
wait_for_requests
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
expect
(
evaluate_script
(
'ace.edit("editor").getValue()'
)).
to
eq
(
'*.rbca'
)
expect
(
evaluate_script
(
'ace.edit("editor").getValue()'
)).
to
eq
(
'*.rbca'
)
...
@@ -35,6 +38,9 @@ describe 'User edits files' do
...
@@ -35,6 +38,9 @@ describe 'User edits files' do
it
'commits an edited file'
,
js:
true
do
it
'commits an edited file'
,
js:
true
do
click_link
(
'.gitignore'
)
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.js-edit-blob'
).
click
wait_for_requests
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
click_button
(
'Commit changes'
)
click_button
(
'Commit changes'
)
...
@@ -49,6 +55,9 @@ describe 'User edits files' do
...
@@ -49,6 +55,9 @@ describe 'User edits files' do
it
'commits an edited file to a new branch'
,
js:
true
do
it
'commits an edited file to a new branch'
,
js:
true
do
click_link
(
'.gitignore'
)
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.js-edit-blob'
).
click
wait_for_requests
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
fill_in
(
:branch_name
,
with:
'new_branch_name'
,
visible:
true
)
fill_in
(
:branch_name
,
with:
'new_branch_name'
,
visible:
true
)
...
@@ -65,6 +74,9 @@ describe 'User edits files' do
...
@@ -65,6 +74,9 @@ describe 'User edits files' do
it
'shows the diff of an edited file'
,
js:
true
do
it
'shows the diff of an edited file'
,
js:
true
do
click_link
(
'.gitignore'
)
click_link
(
'.gitignore'
)
find
(
'.js-edit-blob'
).
click
find
(
'.js-edit-blob'
).
click
wait_for_requests
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
click_link
(
'Preview changes'
)
click_link
(
'Preview changes'
)
...
@@ -92,6 +104,8 @@ describe 'User edits files' do
...
@@ -92,6 +104,8 @@ describe 'User edits files' do
"A fork of this project has been created that you can make changes in, so you can submit a merge request."
"A fork of this project has been created that you can make changes in, so you can submit a merge request."
)
)
wait_for_requests
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
expect
(
evaluate_script
(
'ace.edit("editor").getValue()'
)).
to
eq
(
'*.rbca'
)
expect
(
evaluate_script
(
'ace.edit("editor").getValue()'
)).
to
eq
(
'*.rbca'
)
...
@@ -105,6 +119,9 @@ describe 'User edits files' do
...
@@ -105,6 +119,9 @@ describe 'User edits files' do
expect
(
page
).
to
have_button
(
'Cancel'
)
expect
(
page
).
to
have_button
(
'Cancel'
)
click_link
(
'Fork'
)
click_link
(
'Fork'
)
wait_for_requests
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
execute_script
(
"ace.edit('editor').setValue('*.rbca')"
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
fill_in
(
:commit_message
,
with:
'New commit message'
,
visible:
true
)
click_button
(
'Commit changes'
)
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