Skip to content
代码片段 群组 项目
提交 106cf84c 编辑于 作者: Jay McCure's avatar Jay McCure 提交者: Dan Davison
浏览文件

MR E2E test: reload page when revert button fails

上级 dc9d16c8
No related branches found
No related tags found
无相关合并请求
...@@ -435,9 +435,9 @@ def cherry_pick! ...@@ -435,9 +435,9 @@ def cherry_pick!
end end
def revert_change! def revert_change!
# retry when the modal doesn't appear for large MRs as the onClick listener is initialized after the click # reload page when the revert modal occasionally doesn't appear in ee:large-setup job
# https://gitlab.com/gitlab-org/gitlab/-/issues/366336 # https://gitlab.com/gitlab-org/gitlab/-/issues/386623 (transient issue)
retry_on_exception do retry_on_exception(reload: true) do
click_element(:revert_button, Page::Component::CommitModal) click_element(:revert_button, Page::Component::CommitModal)
end end
click_element(:submit_commit_button) click_element(:submit_commit_button)
......
...@@ -179,7 +179,7 @@ def approve ...@@ -179,7 +179,7 @@ def approve
def fabricate_large_merge_request def fabricate_large_merge_request
@project = Resource::ImportProject.fabricate_via_browser_ui! @project = Resource::ImportProject.fabricate_via_browser_ui!
# Setting the name here, since otherwise some tests will look for an existing file in # Setting the name here, since otherwise some tests will look for an existing file in
# the proejct without ever knowing what is in it. # the project without ever knowing what is in it.
@file_name = "added_file-00000000.txt" @file_name = "added_file-00000000.txt"
@source_branch = "large_merge_request" @source_branch = "large_merge_request"
visit("#{project.web_url}/-/merge_requests/1") visit("#{project.web_url}/-/merge_requests/1")
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册