diff options
Diffstat (limited to 'qa/qa/page/profile/menu.rb')
-rw-r--r-- | qa/qa/page/profile/menu.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/page/profile/menu.rb b/qa/qa/page/profile/menu.rb index a12db2918dc..d638a378610 100644 --- a/qa/qa/page/profile/menu.rb +++ b/qa/qa/page/profile/menu.rb @@ -4,6 +4,10 @@ module QA module Page module Profile class Menu < Page::Base + # We need to check remote_mobile_device_name instead of mobile_layout? here + # since tablets have the regular top navigation bar but still close the left nav + prepend QA::Mobile::Page::Profile::Menu if QA::Runtime::Env.remote_mobile_device_name + 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 |