diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 20:02:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 20:02:30 +0000 |
commit | 41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch) | |
tree | 9c8d89a8624828992f06d892cd2f43818ff5dcc8 /qa/qa/page/file/show.rb | |
parent | 0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff) | |
download | gitlab-ce-14.9.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to 'qa/qa/page/file/show.rb')
-rw-r--r-- | qa/qa/page/file/show.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/qa/qa/page/file/show.rb b/qa/qa/page/file/show.rb index e54c3e0cd07..7d6d81cf869 100644 --- a/qa/qa/page/file/show.rb +++ b/qa/qa/page/file/show.rb @@ -33,15 +33,10 @@ module QA end def click_edit - # TODO: remove this condition and else part once ff :consolidated_edit_button is enabled by default - if has_element?(:action_dropdown) - within_element(:action_dropdown) do - click_button(class: 'dropdown-toggle-split') - click_element(:edit_menu_item) - click_element(:edit_button) - end - else - click_on 'Edit' + within_element(:action_dropdown) do + click_button(class: 'dropdown-toggle-split') + click_element(:edit_menu_item) + click_element(:edit_button) end end |