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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
99f06bc8
Commit
99f06bc8
authored
May 13, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hiding of quick action prompt in specs
parent
74511b04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
spec/support/helpers/features/notes_helpers.rb
spec/support/helpers/features/notes_helpers.rb
+4
-6
No files found.
spec/support/helpers/features/notes_helpers.rb
View file @
99f06bc8
...
@@ -25,12 +25,10 @@ module Spec
...
@@ -25,12 +25,10 @@ module Spec
page
.
within
(
'.js-main-target-form'
)
do
page
.
within
(
'.js-main-target-form'
)
do
filled_text
=
fill_in
(
'note[note]'
,
with:
text
)
filled_text
=
fill_in
(
'note[note]'
,
with:
text
)
begin
# Wait for quick action prompt to load and then dismiss it with ESC
# Dismiss quick action prompt if it appears
# because it may block the Preview button
filled_text
.
parent
.
send_keys
(
:escape
)
wait_for_requests
rescue
Selenium
::
WebDriver
::
Error
::
ElementNotInteractableError
filled_text
.
send_keys
(
:escape
)
# It's fine if we can't escape when there's no prompt.
end
click_on
(
'Preview'
)
click_on
(
'Preview'
)
...
...
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