Commit c9505b64 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add selectors coupling between QA and Geo nodes views

parent d9ece17a
......@@ -5,6 +5,15 @@ module QA
module Geo
module Nodes
class New < QA::Page::Base
view 'ee/app/views/admin/geo_nodes/_form.html.haml' do
element :node_url_field, 'text_field :url'
element :node_url_placeholder, "label :url, 'URL'"
end
view 'ee/app/views/admin/geo_nodes/new.html.haml' do
element :add_node_button, "submit 'Add Node'"
end
def set_node_address(address)
fill_in 'URL', with: address
end
......
......@@ -5,6 +5,10 @@ module QA
module Geo
module Nodes
class Show < QA::Page::Base
view 'ee/app/views/admin/geo_nodes/index.html.haml' do
element :new_node_link, /link_to .*New node/
end
def new_node!
click_link 'New node'
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