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
Léo-Paul Géneau
gitlab-ce
Commits
54a6bcae
Commit
54a6bcae
authored
Sep 27, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed spec/features/projects/files/edit_file_soft_wrap_spec.rb
parent
c01338cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
spec/features/projects/files/edit_file_soft_wrap_spec.rb
spec/features/projects/files/edit_file_soft_wrap_spec.rb
+13
-13
No files found.
spec/features/projects/files/edit_file_soft_wrap_spec.rb
View file @
54a6bcae
...
...
@@ -7,9 +7,8 @@ feature 'User uses soft wrap whilst editing file', js: true do
project
.
team
<<
[
user
,
:master
]
sign_in
user
visit
project_new_blob_path
(
project
,
'master'
,
file_name:
'test_file-name'
)
editor
=
find
(
'.file-editor.code'
)
editor
.
click
editor
.
send_keys
'Touch water with paw then recoil in horror chase dog then
page
.
within
(
'.file-editor.code'
)
do
find
(
'.ace_text-input'
,
visible:
false
).
send_keys
'Touch water with paw then recoil in horror chase dog then
run away chase the pig around the house eat owner\'s food, and knock
dish off table head butt cant eat out of my own dish. Cat is love, cat
is life rub face on everything poop on grasses so meow. Playing with
...
...
@@ -20,6 +19,7 @@ feature 'User uses soft wrap whilst editing file', js: true do
hanging out of own butt jump off balcony, onto stranger\'s head yet
chase laser. Purr for no reason stare at ceiling hola te quiero.'
.
squish
end
end
let
(
:toggle_button
)
{
find
(
'.soft-wrap-toggle'
)
}
...
...
@@ -36,6 +36,6 @@ feature 'User uses soft wrap whilst editing file', js: true do
end
def
get_content_width
find
(
'.ace_content'
)[
:style
].
slice!
(
/width: \d+/
).
slice!
(
/\d+/
)
find
(
'.ace_content'
)[
:style
].
slice!
(
/width: \d+/
).
slice!
(
/\d+/
)
.
to_i
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