Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-13 03:10:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-13 03:10:17 +0300
commitdce8d0c6a7fdc7cca4df3b00b11d68000d117e2f (patch)
treeae6060a584549cfcecced34eea93e2b4fe5c64ed /qa
parent74cb1a1df361969e97d1a85683c1dfca5ac8cad1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/main/menu.rb2
-rw-r--r--qa/qa/page/merge_request/show.rb76
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_project_artifacts/user_can_bulk_delete_artifacts_spec.rb4
3 files changed, 40 insertions, 42 deletions
diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb
index 98d00664854..2413166e120 100644
--- a/qa/qa/page/main/menu.rb
+++ b/qa/qa/page/main/menu.rb
@@ -21,7 +21,7 @@ module QA
element :edit_profile_link
end
- view 'app/assets/javascripts/super_sidebar/components/user_name_group.vue' do
+ view 'app/assets/javascripts/super_sidebar/components/user_menu_profile_item.vue' do
element 'user-profile-link'
end
diff --git a/qa/qa/page/merge_request/show.rb b/qa/qa/page/merge_request/show.rb
index 3782ae0c9d0..a51c65a18c6 100644
--- a/qa/qa/page/merge_request/show.rb
+++ b/qa/qa/page/merge_request/show.rb
@@ -71,13 +71,13 @@ module QA
end
view 'app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_merged.vue' do
- element :cherry_pick_button
- element :revert_button
+ element 'cherry-pick-button'
+ element 'revert-button'
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_content
+ element 'standard-rebase-button'
+ element 'rebase-message'
end
view 'app/assets/javascripts/vue_merge_request_widget/components/states/ready_to_merge.vue' do
@@ -88,33 +88,33 @@ module QA
end
view 'app/assets/javascripts/vue_merge_request_widget/components/states/sha_mismatch.vue' do
- element :head_mismatch_content
+ element 'head-mismatch-content'
end
view 'app/assets/javascripts/vue_merge_request_widget/components/states/squash_before_merge.vue' do
- element :squash_checkbox
+ element 'squash-checkbox'
end
view 'app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue' do
- element :mr_widget_content
+ element 'mr-widget-content'
element 'pipeline-container'
end
view 'app/assets/javascripts/vue_shared/components/markdown/apply_suggestion.vue' do
- element :apply_suggestion_dropdown
- element :commit_message_field
- element :commit_with_custom_message_button
+ element 'apply-suggestion-dropdown'
+ element 'commit-message-field'
+ element 'commit-with-custom-message-button'
end
view 'app/assets/javascripts/vue_shared/components/markdown/header.vue' do
- element :suggestion_button
- element :dismiss_suggestion_popover_button
+ element 'suggestion-button'
+ element 'dismiss-suggestion-popover-button'
end
view 'app/assets/javascripts/vue_shared/components/markdown/suggestion_diff_header.vue' do
- element :add_suggestion_batch_button
- element :applied_badge
- element :applying_badge
+ element 'add-suggestion-batch-button'
+ element 'applied-badge'
+ element 'applying-badge'
end
view 'app/views/projects/merge_requests/_description.html.haml' do
@@ -132,10 +132,6 @@ module QA
element 'diffs-tab', required: true
end
- view 'app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_auto_merge_enabled.vue' do
- element :cancel_auto_merge_button
- end
-
view 'app/views/shared/_broadcast_message.html.haml' do
element 'broadcast-notification-container'
element 'close-button'
@@ -195,7 +191,9 @@ module QA
all_elements('left-line-number', minimum: 1).first.hover
click_element('left-comment-button')
- click_element(:dismiss_suggestion_popover_button) if has_element?(:dismiss_suggestion_popover_button, wait: 1)
+
+ click_element('dismiss-suggestion-popover-button') if has_element?('dismiss-suggestion-popover-button',
+ wait: 1)
fill_element('reply-field', text)
end
@@ -227,7 +225,7 @@ module QA
end
def fast_forward_not_possible?
- has_element?(:no_fast_forward_message_content)
+ has_element?('rebase-message')
end
def has_file?(file_name)
@@ -290,15 +288,15 @@ module QA
def mark_to_squash
# Refresh page if commit arrived after loading the MR page
wait_until(reload: true, message: 'Wait for MR to be unblocked') do
- has_no_element?(:head_mismatch_content, wait: 1)
+ has_no_element?('head-mismatch-content', wait: 1)
end
# The squash checkbox is enabled via JS
wait_until(reload: false) do
- !find_element(:squash_checkbox, visible: false).disabled?
+ !find_element('squash-checkbox', visible: false).disabled?
end
- check_element(:squash_checkbox, true)
+ check_element('squash-checkbox', true)
end
def merge!
@@ -338,7 +336,7 @@ module QA
# Waits up 10 seconds and returns false if the Revert button is not enabled
def revertible?
- has_element?(:revert_button, disabled: false, wait: 10)
+ has_element?('revert-button', disabled: false, wait: 10)
end
# Waits up 60 seconds and raises an error if unable to merge.
@@ -357,7 +355,7 @@ module QA
break true unless find_element('merge-button').disabled?
# If the widget shows "Merge blocked: new changes were just added" we can refresh the page and check again
- next false if has_element?(:head_mismatch_content, wait: 1)
+ next false if has_element?('head-mismatch-content', wait: 1)
# Stop waiting if we're in a transient test. By this point we're in an unexpected state and should let the
# test fail so we can investigate. If we're not in a transient test we keep trying until we reach timeout.
@@ -372,15 +370,15 @@ module QA
def rebase!
# The rebase button is disabled on load
wait_until do
- has_element?(:mr_rebase_button)
+ has_element?('standard-rebase-button')
end
# The rebase button is enabled via JS
wait_until(reload: false) do
- !find_element(:mr_rebase_button).disabled?
+ !find_element('standard-rebase-button').disabled?
end
- click_element(:mr_rebase_button)
+ click_element('standard-rebase-button')
end
def merge_immediately!
@@ -448,7 +446,7 @@ module QA
def add_suggestion_to_diff(suggestion, line)
find("a[data-linenumber='#{line}']").hover
click_element('left-comment-button')
- click_element(:suggestion_button)
+ click_element('suggestion-button')
initial_content = find_element('reply-field').value
fill_element('reply-field', '')
fill_element('reply-field', initial_content.gsub(/(```suggestion:-0\+0\n).*(\n```)/, "\\1#{suggestion}\\2"))
@@ -457,24 +455,24 @@ module QA
end
def apply_suggestion_with_message(message)
- all_elements(:apply_suggestion_dropdown, minimum: 1).first.click
- fill_element(:commit_message_field, message)
- click_element(:commit_with_custom_message_button)
+ all_elements('apply-suggestion-dropdown', minimum: 1).first.click
+ fill_element('commit-message-field', message)
+ click_element('commit-with-custom-message-button')
end
def add_suggestion_to_batch
- all_elements(:add_suggestion_batch_button, minimum: 1).first.click
+ all_elements('add-suggestion-batch-button', minimum: 1).first.click
end
def has_suggestions_applied?(count = 1)
wait_until(reload: false) do
- has_no_element?(:applying_badge)
+ has_no_element?('applying-badge')
end
- all_elements(:applied_badge, count: count)
+ all_elements('applied-badge', count: count)
end
def cherry_pick!
- click_element(:cherry_pick_button, Page::Component::CommitModal)
+ click_element('cherry-pick-button', Page::Component::CommitModal)
click_element(:submit_commit_button)
end
@@ -482,13 +480,13 @@ module QA
# reload page when the revert modal occasionally doesn't appear in ee:large-setup job
# https://gitlab.com/gitlab-org/gitlab/-/issues/386623 (transient issue)
retry_on_exception(reload: true) do
- click_element(:revert_button, Page::Component::CommitModal)
+ click_element('revert-button', Page::Component::CommitModal)
end
click_element(:submit_commit_button)
end
def mr_widget_text
- find_element(:mr_widget_content).text
+ find_element('mr-widget-content').text
end
def has_fork_icon?
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_project_artifacts/user_can_bulk_delete_artifacts_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_project_artifacts/user_can_bulk_delete_artifacts_spec.rb
index 17c83a32d52..27969759adf 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_project_artifacts/user_can_bulk_delete_artifacts_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_project_artifacts/user_can_bulk_delete_artifacts_spec.rb
@@ -23,7 +23,7 @@ module QA
after do
Parallel.each((0..(total_runners_count - 1)), in_threads: 3) do |i|
- runners[i].remove_via_api!
+ runners[i]&.remove_via_api!
end
end
@@ -46,7 +46,7 @@ module QA
def launch_runners
Parallel.each((1..total_runners_count), in_threads: 3) do |i|
- runners << create(:project_runner, project: project, name: "executor-#{i}", tags: [executor])
+ runners << create(:project_runner, project: project, name: "#{executor}-#{i}", tags: [executor])
end
end