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
7c95fbf8
Commit
7c95fbf8
authored
Dec 20, 2019
by
Nailia Iskhakova
Committed by
Ramya Authappan
Dec 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky file locking spec
Added wait for merge request error message
parent
7827f51f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_failed_to_merge.vue
...st_widget/components/states/mr_widget_failed_to_merge.vue
+6
-1
qa/qa/page/merge_request/show.rb
qa/qa/page/merge_request/show.rb
+10
-0
qa/qa/specs/features/ee/browser_ui/3_create/repository/file_locking_spec.rb
...es/ee/browser_ui/3_create/repository/file_locking_spec.rb
+3
-3
No files found.
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_failed_to_merge.vue
View file @
7c95fbf8
...
...
@@ -84,7 +84,12 @@ export default {
<span
v-else
>
{{
s__
(
'
mrWidget|Merge failed.
'
)
}}
</span>
<span
:class=
"
{ 'has-custom-error': mr.mergeError }">
{{
timerText
}}
</span>
</span>
<button
class=
"btn btn-default btn-sm js-refresh-button"
type=
"button"
@
click=
"refresh"
>
<button
class=
"btn btn-default btn-sm js-refresh-button"
data-qa-selector=
"merge_request_error_content"
type=
"button"
@
click=
"refresh"
>
{{
s__
(
'
mrWidget|Refresh now
'
)
}}
</button>
</div>
...
...
qa/qa/page/merge_request/show.rb
View file @
7c95fbf8
...
...
@@ -29,6 +29,10 @@ module QA
element
:merged_status_content
end
view
'app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_failed_to_merge.vue'
do
element
:merge_request_error_content
end
view
'app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_rebase.vue'
do
element
:mr_rebase_button
element
:no_fast_forward_message
,
'Fast-forward merge is not possible'
# rubocop:disable QA/ElementWithPattern
...
...
@@ -193,6 +197,12 @@ module QA
click_element
:dropdown_toggle
visit_link_in_element
(
:download_plain_diff
)
end
def
wait_for_merge_request_error_message
wait
(
max:
30
,
reload:
false
)
do
has_element?
(
:merge_request_error_content
)
end
end
end
end
end
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/file_locking_spec.rb
View file @
7c95fbf8
...
...
@@ -59,9 +59,8 @@ module QA
end
end
# https://gitlab.com/gitlab-org/gitlab/issues/40125
# BUG_IN_CODE
it
'creates a merge request and fails to merge'
,
:quarantine
do
# Known issue: https://gitlab.com/gitlab-org/gitlab/issues/40125
it
'creates a merge request and fails to merge'
do
push
branch:
'test'
,
as_user:
@user_one
merge_request
=
Resource
::
MergeRequest
.
fabricate_via_api!
do
|
merge_request
|
...
...
@@ -75,6 +74,7 @@ module QA
click_lock
sign_out_and_sign_in_as
user:
@user_one
try_to_merge
merge_request:
merge_request
Page
::
MergeRequest
::
Show
.
perform
(
&
:wait_for_merge_request_error_message
)
expect
(
page
).
to
have_text
(
"locked by
#{
admin_username
}
"
)
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