Commit 80a03ca0 authored by Mark Lapierre's avatar Mark Lapierre

Update EE admin menu QA selectors

Replace text-based selectors with specific QA classes
parent ecb6c46c
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
%span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge= number_with_delimiter(AbuseReport.count(:all)) %span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge= number_with_delimiter(AbuseReport.count(:all))
= nav_link(controller: :licenses) do = nav_link(controller: :licenses) do
= link_to admin_license_path do = link_to admin_license_path, class: "qa-link-license-menu" do
.nav-icon-container .nav-icon-container
= sprite_icon('license') = sprite_icon('license')
%span.nav-item-name %span.nav-item-name
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
#{ _('Push Rules') } #{ _('Push Rules') }
= nav_link(controller: %w(admin/geo/nodes admin/geo/projects)) do = nav_link(controller: %w(admin/geo/nodes admin/geo/projects)) do
= link_to admin_geo_nodes_path do = link_to admin_geo_nodes_path, class: "qa-link-geo-menu" do
.nav-icon-container .nav-icon-container
= sprite_icon('location-dot') = sprite_icon('location-dot')
%span.nav-item-name %span.nav-item-name
......
# frozen_string_literal: true
module QA module QA
module EE module EE
module Page module Page
...@@ -6,18 +8,18 @@ module QA ...@@ -6,18 +8,18 @@ module QA
def self.prepended(page) def self.prepended(page)
page.module_eval do page.module_eval do
view 'app/views/layouts/nav/sidebar/_admin.html.haml' do view 'app/views/layouts/nav/sidebar/_admin.html.haml' do
element :license, "_('License')" element :link_license_menu
element :geo_node, "_('Geo')" element :link_geo_menu
end end
end end
end end
def go_to_geo_nodes def go_to_geo_nodes
click_link 'Geo' click_element :link_geo_menu
end end
def go_to_license def go_to_license
click_link 'License' click_element :link_license_menu
end end
end end
end end
......
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