Commit d9ece17a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add QA selectors coupling with new EE license views

parent 0ad6b424
......@@ -3,6 +3,22 @@ module QA
module Page
module Admin
class License < QA::Page::Base
view 'ee/app/views/admin/licenses/missing.html.haml' do
element :missing_license, 'You do not have a license'
end
view 'ee/app/views/admin/licenses/show.html.haml' do
element :license_upload_link, "link_to 'Upload New License'"
end
view 'ee/app/views/admin/licenses/new.html.haml' do
element :license_type, 'radio_button_tag :license_type'
element :license_type_placeholder, 'Enter license key'
element :license_key_field, 'text_area :data'
element :license_key_placeholder, 'label :data, "License key"'
element :license_upload_buttonm, "submit 'Upload license'"
end
def no_license?
page.has_content?('You do not have a license')
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