Commit 09e9a502 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add .qa-project-deploy-keys to locate it

Without this, it's very hard to locate it.
parent 39a659a1
......@@ -87,6 +87,7 @@
<div v-else-if="hasKeys">
<keys-panel
title="Enabled deploy keys for this project"
class="qa-project-deploy-keys"
:keys="keys.enabled_keys"
:store="store"
:endpoint="endpoint"
......
......@@ -10,6 +10,7 @@ module QA
view 'app/assets/javascripts/deploy_keys/components/app.vue' do
element :deploy_keys_section, /class=".*deploy\-keys.*"/
element :project_deploy_keys, 'class="qa-project-deploy-keys"'
end
view 'app/assets/javascripts/deploy_keys/components/key.vue' do
......@@ -30,10 +31,8 @@ module QA
end
def key_title
page.within('.deploy-keys') do
# The instance might have public keys available, here we want
# the one from the project
page.first('.title').text
page.within('.qa-project-deploy-keys') do
page.find('.title').text
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