Commit 0bb460bc authored by Zack Cuddy's avatar Zack Cuddy

Changes based on @treagitlab feedback

Rename new_node_link to
add_site_button in specs.
parent 35e5f26a
......@@ -93,7 +93,7 @@ export default {
variant="confirm"
:href="newNodeUrl"
target="_blank"
data-qa-selector="new_node_link"
data-qa-selector="add_site_button"
>{{ $options.i18n.addSite }}
</gl-button>
</div>
......
......@@ -38,7 +38,7 @@ RSpec.describe 'admin Geo Nodes', :js, :geo do
wait_for_requests
end
it 'shows all public Geo Nodes and create new node link' do
it 'shows all public Geo Nodes and Add site link' do
expect(page).to have_link('Add site', href: new_admin_geo_node_path)
page.within(find('.geo-node-core-details-grid-columns', match: :first)) do
expect(page).to have_content(geo_node.url)
......
......@@ -8,11 +8,11 @@ module QA
module Nodes
class Show < QA::Page::Base
view 'ee/app/assets/javascripts/geo_nodes_beta/components/app.vue' do
element :new_node_link
element :add_site_button
end
def new_node!
click_element :new_node_link
click_element(:add_site_button)
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