diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-12-28 21:22:21 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-12-28 21:22:21 +0800 |
commit | c91718366d0af94de6d67afe1f2fe35076e20f26 (patch) | |
tree | 5f5a8d80a3e8bee595dbe7b304453a9fcbfe8b79 /qa | |
parent | 45d0be8371d9e09d9a950841cdf4a58f3e4de6e9 (diff) | |
download | gitlab-ce-c91718366d0af94de6d67afe1f2fe35076e20f26.tar.gz |
Just add a new class to locate the expand button
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/project/settings/repository.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qa/qa/page/project/settings/repository.rb b/qa/qa/page/project/settings/repository.rb index 740fb91d62e..5d73911c697 100644 --- a/qa/qa/page/project/settings/repository.rb +++ b/qa/qa/page/project/settings/repository.rb @@ -5,11 +5,7 @@ module QA class Repository < Page::Base def expand(title) page.within('#content-body') do - find( - :xpath, - "//button[contains(text(), 'Expand')]" + - "[../h4[contains(text(), '#{title}')]]" - ).click + find('.qa-expand-deploy-keys').click end end end |