diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-23 06:06:39 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-23 06:06:39 +0000 |
commit | 90cdc9391171e1be29b2b57a2e2aad0c02c2a7a9 (patch) | |
tree | 06156e751d516e3d43d3981bdd6c41784a7acc71 /qa | |
parent | 8c7eab92cd0009f55cb999bbade43e0f969c137e (diff) | |
download | gitlab-ce-90cdc9391171e1be29b2b57a2e2aad0c02c2a7a9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/project/issue/show.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qa/qa/page/project/issue/show.rb b/qa/qa/page/project/issue/show.rb index d2732eb7dd2..8f5632f7e6e 100644 --- a/qa/qa/page/project/issue/show.rb +++ b/qa/qa/page/project/issue/show.rb @@ -161,7 +161,15 @@ module QA def select_user(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 def wait_assignees_block_finish_loading |