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
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/main/menu.rb')
-rw-r--r--qa/qa/page/main/menu.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb
index 9bd0e52132f..2413166e120 100644
--- a/qa/qa/page/main/menu.rb
+++ b/qa/qa/page/main/menu.rb
@@ -21,8 +21,8 @@ module QA
element :edit_profile_link
end
- view 'app/assets/javascripts/super_sidebar/components/user_name_group.vue' do
- element :user_profile_link
+ view 'app/assets/javascripts/super_sidebar/components/user_menu_profile_item.vue' do
+ element 'user-profile-link'
end
view 'app/assets/javascripts/super_sidebar/components/user_bar.vue' do
@@ -115,10 +115,10 @@ module QA
return false unless has_personal_area?
within_user_menu do
- has_element?(:user_profile_link, text: /#{user.username}/)
+ has_element?('user-profile-link', text: /#{user.username}/)
end
# we need to close user menu because plain user link check will leave it open
- click_element :user_avatar_content if has_element?(:user_profile_link, wait: 0)
+ click_element :user_avatar_content if has_element?('user-profile-link', wait: 0)
end
def not_signed_in?
@@ -159,7 +159,7 @@ module QA
def click_user_profile_link
within_user_menu do
- click_element(:user_profile_link)
+ click_element('user-profile-link')
end
end
@@ -189,7 +189,7 @@ module QA
def within_user_menu(&block)
within_element(:navbar) do
- click_element :user_avatar_content unless has_element?(:user_profile_link, wait: 1)
+ click_element :user_avatar_content unless has_element?('user-profile-link', wait: 1)
within_element('user-dropdown', &block)
end