Commit b59d8e9b authored by Ash McKenzie's avatar Ash McKenzie

Add EE Page::Profile::Menu helper module

parent 7a2396a7
......@@ -39,6 +39,10 @@ module QA
end
end
module Profile
autoload :Menu, 'qa/ee/page/profile/menu'
end
module Project
autoload :Show, 'qa/ee/page/project/show'
......
# frozen_string_literal: true
module QA
module EE
module Page
module Profile
module Menu
def wait_for_key_to_replicate(text, max_wait: Runtime::Geo.max_file_replication_time)
wait(max: max_wait) { page.has_text?(text) }
end
end
end
end
end
end
......@@ -4,6 +4,8 @@ module QA
module Page
module Profile
class Menu < Page::Base
prepend QA::EE::Page::Profile::Menu
view 'app/views/layouts/nav/sidebar/_profile.html.haml' do
element :access_token_link, 'link_to profile_personal_access_tokens_path' # rubocop:disable QA/ElementWithPattern
element :access_token_title, 'Access Tokens' # rubocop:disable QA/ElementWithPattern
......
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