Commit 7327cfa5 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'tentative-of-fixing-another-e2e-test' into 'master'

De-quarantined an end-to-end test

Closes gitlab-org/quality/nightly#146

See merge request gitlab-org/gitlab!18941
parents 65276088 ae56390d
...@@ -161,7 +161,15 @@ module QA ...@@ -161,7 +161,15 @@ module QA
def select_user(username) def select_user(username)
find("#{element_selector_css(:assignee_block)} input").set(username) find("#{element_selector_css(:assignee_block)} input").set(username)
find('.dropdown-menu-user-link', text: "@#{username}").click
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 end
def wait_assignees_block_finish_loading def wait_assignees_block_finish_loading
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
# https://gitlab.com/gitlab-org/quality/nightly/issues/146 context 'Plan' do
context 'Plan', :quarantine do
describe 'Multiple assignees per issue' do describe 'Multiple assignees per issue' do
before do before do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
...@@ -31,6 +30,8 @@ module QA ...@@ -31,6 +30,8 @@ module QA
Page::Project::Issue::Show.perform do |show| Page::Project::Issue::Show.perform do |show|
show.assign(@user_2) show.assign(@user_2)
show.select_all_activities_filter
expect(show).to have_content "assigned to @#{@user_2.username}" expect(show).to have_content "assigned to @#{@user_2.username}"
expect(show.avatar_image_count).to be 2 expect(show.avatar_image_count).to be 2
expect(show.assignee_title).to have_content '2 Assignees' expect(show.assignee_title).to have_content '2 Assignees'
......
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