diff options
author | Jennie Louie <jlouie@gitlab.com> | 2019-09-09 22:59:58 -0700 |
---|---|---|
committer | Jennie Louie <jlouie@gitlab.com> | 2019-09-10 10:12:53 -0700 |
commit | 5e79e74fa58caeeee7539b3ffee5e3ce23142d9f (patch) | |
tree | 488cab7f2352ba2dc842fb5b915f71abc61b173d /qa/qa/page/profile | |
parent | 2b06f6157bb0d36ca2714c9ddbb08e636fd4a390 (diff) | |
download | gitlab-ce-5e79e74fa58caeeee7539b3ffee5e3ce23142d9f.tar.gz |
Update qa resources and pages for Geo wiki specqa-wiki-ssh-spec
Add qa selectors to wiki show and ssh keys page
Add method to wiki push resource to find ssh_uri
Diffstat (limited to 'qa/qa/page/profile')
-rw-r--r-- | qa/qa/page/profile/ssh_keys.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qa/qa/page/profile/ssh_keys.rb b/qa/qa/page/profile/ssh_keys.rb index ce1813b14d0..082202f91ca 100644 --- a/qa/qa/page/profile/ssh_keys.rb +++ b/qa/qa/page/profile/ssh_keys.rb @@ -14,6 +14,10 @@ module QA element :delete_key_button end + view 'app/views/profiles/keys/_key_table.html.haml' do + element :ssh_keys_list + end + def add_key(public_key, title) fill_element :key_public_key_field, public_key fill_element :key_title_field, title @@ -28,6 +32,10 @@ module QA click_element :delete_key_button end end + + def keys_list + find_element(:ssh_keys_list).text + end end end end |