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
Boxiang Sun
gitlab-ce
Commits
541a082c
Commit
541a082c
authored
Aug 16, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename find('.ace_editor') -> find('.ace_text-input') to make Chrome happy
parent
ebd5c309
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec/features/projects/snippets/create_snippet_spec.rb
spec/features/projects/snippets/create_snippet_spec.rb
+1
-1
spec/features/snippets/user_creates_snippet_spec.rb
spec/features/snippets/user_creates_snippet_spec.rb
+2
-2
No files found.
spec/features/projects/snippets/create_snippet_spec.rb
View file @
541a082c
...
...
@@ -10,7 +10,7 @@ feature 'Create Snippet', :js do
fill_in
'project_snippet_title'
,
with:
'My Snippet Title'
fill_in
'project_snippet_description'
,
with:
'My Snippet **Description**'
page
.
within
(
'.file-editor'
)
do
find
(
'.ace_
editor
'
).
native
.
send_keys
(
'Hello World!'
)
find
(
'.ace_
text-input
'
).
native
.
send_keys
(
'Hello World!'
)
end
end
...
...
spec/features/snippets/user_creates_snippet_spec.rb
View file @
541a082c
...
...
@@ -14,7 +14,7 @@ feature 'User creates snippet', :js do
fill_in
'personal_snippet_title'
,
with:
'My Snippet Title'
fill_in
'personal_snippet_description'
,
with:
'My Snippet **Description**'
page
.
within
(
'.file-editor'
)
do
find
(
'.ace_
editor
'
).
native
.
send_keys
'Hello World!'
find
(
'.ace_
text-input
'
).
native
.
send_keys
'Hello World!'
end
end
...
...
@@ -94,7 +94,7 @@ feature 'User creates snippet', :js do
fill_in
'personal_snippet_title'
,
with:
'My Snippet Title'
page
.
within
(
'.file-editor'
)
do
find
(
:xpath
,
"//input[@id='personal_snippet_file_name']"
).
set
'snippet+file+name'
find
(
'.ace_
editor
'
).
native
.
send_keys
'Hello World!'
find
(
'.ace_
text-input
'
).
native
.
send_keys
'Hello World!'
end
click_button
'Create snippet'
...
...
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