summaryrefslogtreecommitdiff
path: root/qa/qa/page/file/show.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/file/show.rb')
-rw-r--r--qa/qa/page/file/show.rb13
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