summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-01-19 22:34:21 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-01-20 01:24:28 +0800
commit09e9a50272c516997e41afff81d98d05a8b6c728 (patch)
treed9eb6644d94568569167835fac5795e2602dff56
parent39a659a1350553900c0efe500da752665dd4a376 (diff)
downloadgitlab-ce-09e9a50272c516997e41afff81d98d05a8b6c728.tar.gz
Add .qa-project-deploy-keys to locate itqa-deploy-key-factory-product
Without this, it's very hard to locate it.
-rw-r--r--app/assets/javascripts/deploy_keys/components/app.vue1
-rw-r--r--qa/qa/page/project/settings/deploy_keys.rb7
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/deploy_keys/components/app.vue b/app/assets/javascripts/deploy_keys/components/app.vue
index 7b68b19de75..5a782237b7d 100644
--- a/app/assets/javascripts/deploy_keys/components/app.vue
+++ b/app/assets/javascripts/deploy_keys/components/app.vue
@@ -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"
diff --git a/qa/qa/page/project/settings/deploy_keys.rb b/qa/qa/page/project/settings/deploy_keys.rb
index 211699599e1..f9e40bf4252 100644
--- a/qa/qa/page/project/settings/deploy_keys.rb
+++ b/qa/qa/page/project/settings/deploy_keys.rb
@@ -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