Commit e555de12 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'delete-flaky-e2e-test' into 'master'

Delete flaky end-to-end test

Closes #39595

See merge request gitlab-org/gitlab!21634
parents d56ff698 2d5d52a5
...@@ -32,14 +32,13 @@ export default { ...@@ -32,14 +32,13 @@ export default {
}; };
</script> </script>
<template> <template>
<div class="title hide-collapsed" data-qa-selector="assignee_title"> <div class="title hide-collapsed">
{{ assigneeTitle }} {{ assigneeTitle }}
<i v-if="loading" aria-hidden="true" class="fa fa-spinner fa-spin block-loading"></i> <i v-if="loading" aria-hidden="true" class="fa fa-spinner fa-spin block-loading"></i>
<a <a
v-if="editable" v-if="editable"
class="js-sidebar-dropdown-toggle edit-link float-right" class="js-sidebar-dropdown-toggle edit-link float-right"
href="#" href="#"
data-qa-selector="assignee_edit_link"
data-track-event="click_edit_button" data-track-event="click_edit_button"
data-track-label="right_sidebar" data-track-label="right_sidebar"
data-track-property="assignee" data-track-property="assignee"
......
...@@ -26,11 +26,6 @@ module QA ...@@ -26,11 +26,6 @@ module QA
element :avatar_image element :avatar_image
end end
view 'app/assets/javascripts/sidebar/components/assignees/assignee_title.vue' do
element :assignee_edit_link
element :assignee_title
end
view 'app/assets/javascripts/sidebar/components/assignees/uncollapsed_assignee_list.vue' do view 'app/assets/javascripts/sidebar/components/assignees/uncollapsed_assignee_list.vue' do
element :more_assignees_link element :more_assignees_link
end end
...@@ -61,16 +56,6 @@ module QA ...@@ -61,16 +56,6 @@ module QA
element :new_note_form, 'attr: :note' # rubocop:disable QA/ElementWithPattern element :new_note_form, 'attr: :note' # rubocop:disable QA/ElementWithPattern
end end
def assign(user)
click_element(:assignee_edit_link)
select_user(user.username)
click_body
end
def assignee_title
find_element(:assignee_title)
end
def avatar_image_count def avatar_image_count
wait_assignees_block_finish_loading do wait_assignees_block_finish_loading do
all_elements(:avatar_image).count all_elements(:avatar_image).count
...@@ -168,19 +153,6 @@ module QA ...@@ -168,19 +153,6 @@ module QA
end end
end end
def select_user(username)
find("#{element_selector_css(:assignee_block)} input").set(username)
dropdown_menu_user_link_selector = '.dropdown-menu-user-link'
at_username = "@#{username}"
ten_seconds = 10
wait(reload: false, max: ten_seconds, interval: 1) do
has_css?(dropdown_menu_user_link_selector, wait: ten_seconds, text: at_username)
end
find(dropdown_menu_user_link_selector, text: at_username).click
end
def wait_assignees_block_finish_loading def wait_assignees_block_finish_loading
within_element(:assignee_block) do within_element(:assignee_block) do
wait(reload: false, max: 10, interval: 1) do wait(reload: false, max: 10, interval: 1) do
......
# frozen_string_literal: true
module QA
context 'Plan' do
describe 'Multiple assignees per issue' do
before do
Flow::Login.sign_in
user_1 = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1)
@user_2 = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_2, Runtime::Env.gitlab_qa_password_2)
project = Resource::Project.fabricate_via_api! do |resource|
resource.name = 'project-to-test-issue-with-multiple-assignees'
end
project.add_member(user_1)
project.add_member(@user_2)
@issue = Resource::Issue.fabricate_via_api! do |issue|
issue.title = issue.title = 'issue-to-test-multiple-assignees'
issue.project = project
issue.assignee_ids = [user_1.id]
end
end
it 'assigns one more user to an issue via the browser UI' do
@issue.visit!
Page::Project::Issue::Show.perform do |show|
show.assign(@user_2)
show.select_all_activities_filter
expect(show.avatar_image_count).to be 2
expect(show.assignee_title).to have_content '2 Assignees'
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment