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
Jérome Perrin
gitlab-ce
Commits
cc00b289
Commit
cc00b289
authored
Nov 03, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flaky tests by removing unneeded clicks and focus actions
parent
72157766
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
spec/features/issues/gfm_autocomplete_spec.rb
spec/features/issues/gfm_autocomplete_spec.rb
+1
-16
No files found.
spec/features/issues/gfm_autocomplete_spec.rb
View file @
cc00b289
...
@@ -28,7 +28,6 @@ feature 'GFM autocomplete', :js do
...
@@ -28,7 +28,6 @@ feature 'GFM autocomplete', :js do
it
'opens autocomplete menu when field starts with text'
do
it
'opens autocomplete menu when field starts with text'
do
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
find
(
'#note-body'
).
native
.
send_keys
(
''
)
find
(
'#note-body'
).
native
.
send_keys
(
'@'
)
find
(
'#note-body'
).
native
.
send_keys
(
'@'
)
end
end
...
@@ -46,7 +45,6 @@ feature 'GFM autocomplete', :js do
...
@@ -46,7 +45,6 @@ feature 'GFM autocomplete', :js do
it
'doesnt select the first item for non-assignee dropdowns'
do
it
'doesnt select the first item for non-assignee dropdowns'
do
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
find
(
'#note-body'
).
native
.
send_keys
(
''
)
find
(
'#note-body'
).
native
.
send_keys
(
':'
)
find
(
'#note-body'
).
native
.
send_keys
(
':'
)
end
end
...
@@ -86,7 +84,6 @@ feature 'GFM autocomplete', :js do
...
@@ -86,7 +84,6 @@ feature 'GFM autocomplete', :js do
it
'selects the first item for assignee dropdowns'
do
it
'selects the first item for assignee dropdowns'
do
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
find
(
'#note-body'
).
native
.
send_keys
(
''
)
find
(
'#note-body'
).
native
.
send_keys
(
'@'
)
find
(
'#note-body'
).
native
.
send_keys
(
'@'
)
end
end
...
@@ -112,7 +109,6 @@ feature 'GFM autocomplete', :js do
...
@@ -112,7 +109,6 @@ feature 'GFM autocomplete', :js do
it
'selects the first item for non-assignee dropdowns if a query is entered'
do
it
'selects the first item for non-assignee dropdowns if a query is entered'
do
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
find
(
'#note-body'
).
native
.
send_keys
(
''
)
find
(
'#note-body'
).
native
.
send_keys
(
':1'
)
find
(
'#note-body'
).
native
.
send_keys
(
':1'
)
end
end
...
@@ -127,9 +123,8 @@ feature 'GFM autocomplete', :js do
...
@@ -127,9 +123,8 @@ feature 'GFM autocomplete', :js do
it
'wraps the result in double quotes'
do
it
'wraps the result in double quotes'
do
note
=
find
(
'#note-body'
)
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
find
(
'#note-body'
)
.
native
.
send_keys
(
''
)
simulate_input
(
'#note-body'
,
"~
#{
label
.
title
[
0
]
}
"
)
simulate_input
(
'#note-body'
,
"~
#{
label
.
title
[
0
]
}
"
)
note
.
click
end
end
label_item
=
find
(
'.atwho-view li'
,
text:
label
.
title
)
label_item
=
find
(
'.atwho-view li'
,
text:
label
.
title
)
...
@@ -152,16 +147,13 @@ feature 'GFM autocomplete', :js do
...
@@ -152,16 +147,13 @@ feature 'GFM autocomplete', :js do
it
"does not show dropdown when preceded with a special character"
do
it
"does not show dropdown when preceded with a special character"
do
note
=
find
(
'#note-body'
)
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
note
.
native
.
send_keys
(
"@"
)
note
.
native
.
send_keys
(
"@"
)
note
.
click
end
end
expect
(
page
).
to
have_selector
(
'.atwho-container'
)
expect
(
page
).
to
have_selector
(
'.atwho-container'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
"@"
)
note
.
native
.
send_keys
(
"@"
)
note
.
click
end
end
expect
(
page
).
to
have_selector
(
'.atwho-container'
,
visible:
false
)
expect
(
page
).
to
have_selector
(
'.atwho-container'
,
visible:
false
)
...
@@ -170,9 +162,7 @@ feature 'GFM autocomplete', :js do
...
@@ -170,9 +162,7 @@ feature 'GFM autocomplete', :js do
it
"does not throw an error if no labels exist"
do
it
"does not throw an error if no labels exist"
do
note
=
find
(
'#note-body'
)
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
note
.
native
.
send_keys
(
'~'
)
note
.
native
.
send_keys
(
'~'
)
note
.
click
end
end
expect
(
page
).
to
have_selector
(
'.atwho-container'
,
visible:
false
)
expect
(
page
).
to
have_selector
(
'.atwho-container'
,
visible:
false
)
...
@@ -181,7 +171,6 @@ feature 'GFM autocomplete', :js do
...
@@ -181,7 +171,6 @@ feature 'GFM autocomplete', :js do
it
'doesn\'t wrap for assignee values'
do
it
'doesn\'t wrap for assignee values'
do
note
=
find
(
'#note-body'
)
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
note
.
native
.
send_keys
(
"@
#{
user
.
username
[
0
]
}
"
)
note
.
native
.
send_keys
(
"@
#{
user
.
username
[
0
]
}
"
)
end
end
...
@@ -193,9 +182,7 @@ feature 'GFM autocomplete', :js do
...
@@ -193,9 +182,7 @@ feature 'GFM autocomplete', :js do
it
'doesn\'t wrap for emoji values'
do
it
'doesn\'t wrap for emoji values'
do
note
=
find
(
'#note-body'
)
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
note
.
native
.
send_keys
(
":cartwheel_"
)
note
.
native
.
send_keys
(
":cartwheel_"
)
note
.
click
end
end
emoji_item
=
find
(
'.atwho-view li'
,
text:
'cartwheel_tone1'
)
emoji_item
=
find
(
'.atwho-view li'
,
text:
'cartwheel_tone1'
)
...
@@ -222,9 +209,7 @@ feature 'GFM autocomplete', :js do
...
@@ -222,9 +209,7 @@ feature 'GFM autocomplete', :js do
it
'triggers autocomplete after selecting a quick action'
do
it
'triggers autocomplete after selecting a quick action'
do
note
=
find
(
'#note-body'
)
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
note
.
native
.
send_keys
(
'/as'
)
note
.
native
.
send_keys
(
'/as'
)
note
.
click
end
end
find
(
'.atwho-view li'
,
text:
'/assign'
)
find
(
'.atwho-view li'
,
text:
'/assign'
)
...
...
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