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
6052f5e9
Commit
6052f5e9
authored
Feb 16, 2021
by
Vijay Hawoldar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for requests in `edit_note` helper
parent
14d6ca06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
spec/support/helpers/features/notes_helpers.rb
spec/support/helpers/features/notes_helpers.rb
+2
-0
spec/support/shared_examples/quick_actions/issue/clone_quick_action_shared_examples.rb
...quick_actions/issue/clone_quick_action_shared_examples.rb
+0
-2
spec/support/shared_examples/quick_actions/issue/move_quick_action_shared_examples.rb
.../quick_actions/issue/move_quick_action_shared_examples.rb
+0
-2
No files found.
spec/support/helpers/features/notes_helpers.rb
View file @
6052f5e9
...
...
@@ -31,6 +31,8 @@ module Spec
fill_in
(
'note[note]'
,
with:
new_note_text
)
find
(
'.js-comment-button'
).
click
end
wait_for_requests
end
def
preview_note
(
text
)
...
...
spec/support/shared_examples/quick_actions/issue/clone_quick_action_shared_examples.rb
View file @
6052f5e9
...
...
@@ -148,7 +148,6 @@ RSpec.shared_examples 'clone quick action' do
expect
(
issue
.
reload
).
not_to
be_closed
edit_note
(
"/cloe
#{
target_project
.
full_path
}
"
,
"test note.
\n
/clone
#{
target_project
.
full_path
}
"
)
wait_for_all_requests
expect
(
page
).
to
have_content
'test note.'
expect
(
issue
.
reload
).
to
be_open
...
...
@@ -166,7 +165,6 @@ RSpec.shared_examples 'clone quick action' do
expect
(
page
).
not_to
have_content
'Commands applied'
edit_note
(
"/cloe
#{
target_project
.
full_path
}
"
,
"/clone
#{
target_project
.
full_path
}
"
)
wait_for_all_requests
expect
(
page
).
not_to
have_content
"/clone
#{
target_project
.
full_path
}
"
expect
(
issue
.
reload
).
to
be_open
...
...
spec/support/shared_examples/quick_actions/issue/move_quick_action_shared_examples.rb
View file @
6052f5e9
...
...
@@ -106,7 +106,6 @@ RSpec.shared_examples 'move quick action' do
expect
(
issue
.
reload
).
not_to
be_closed
edit_note
(
"/mvoe
#{
target_project
.
full_path
}
"
,
"test note.
\n
/move
#{
target_project
.
full_path
}
"
)
wait_for_all_requests
expect
(
page
).
to
have_content
'test note.'
expect
(
issue
.
reload
).
to
be_closed
...
...
@@ -125,7 +124,6 @@ RSpec.shared_examples 'move quick action' do
expect
(
issue
.
reload
).
not_to
be_closed
edit_note
(
"/mvoe
#{
target_project
.
full_path
}
"
,
"/move
#{
target_project
.
full_path
}
"
)
wait_for_all_requests
expect
(
page
).
not_to
have_content
"/move
#{
target_project
.
full_path
}
"
expect
(
issue
.
reload
).
to
be_closed
...
...
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