Commit fc7b7d43 authored by Kushal Pandya's avatar Kushal Pandya

Update selector for new Geo admin page layout

parent 7c8fc05c
...@@ -13,7 +13,7 @@ describe 'admin Geo Nodes', :js do ...@@ -13,7 +13,7 @@ describe 'admin Geo Nodes', :js do
wait_for_requests wait_for_requests
expect(page).to have_link('New node', href: new_admin_geo_node_path) expect(page).to have_link('New node', href: new_admin_geo_node_path)
page.within(find('.geo-nodes', match: :first)) do page.within(find('.geo-node-item', match: :first)) do
expect(page).to have_content(geo_node.url) expect(page).to have_content(geo_node.url)
end end
end end
...@@ -33,7 +33,7 @@ describe 'admin Geo Nodes', :js do ...@@ -33,7 +33,7 @@ describe 'admin Geo Nodes', :js do
expect(current_path).to eq admin_geo_nodes_path expect(current_path).to eq admin_geo_nodes_path
wait_for_requests wait_for_requests
page.within(find('.geo-nodes', match: :first)) do page.within(find('.geo-node-item', match: :first)) do
expect(page).to have_content(geo_node.url) expect(page).to have_content(geo_node.url)
end end
end end
...@@ -68,7 +68,7 @@ describe 'admin Geo Nodes', :js do ...@@ -68,7 +68,7 @@ describe 'admin Geo Nodes', :js do
expect(current_path).to eq admin_geo_nodes_path expect(current_path).to eq admin_geo_nodes_path
wait_for_requests wait_for_requests
page.within(find('.geo-nodes', match: :first)) do page.within(find('.geo-node-item', match: :first)) do
expect(page).to have_content('http://newsite.com') expect(page).to have_content('http://newsite.com')
expect(page).to have_content('Primary') expect(page).to have_content('Primary')
end end
...@@ -91,7 +91,7 @@ describe 'admin Geo Nodes', :js do ...@@ -91,7 +91,7 @@ describe 'admin Geo Nodes', :js do
expect(current_path).to eq admin_geo_nodes_path expect(current_path).to eq admin_geo_nodes_path
wait_for_requests wait_for_requests
expect(page).not_to have_css('.geo-nodes') expect(page).not_to have_css('.geo-node-item')
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