summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/web_ide/edit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/web_ide/edit.rb')
-rw-r--r--qa/qa/page/project/web_ide/edit.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/qa/qa/page/project/web_ide/edit.rb b/qa/qa/page/project/web_ide/edit.rb
index 0977ff0c91b..73b0856b445 100644
--- a/qa/qa/page/project/web_ide/edit.rb
+++ b/qa/qa/page/project/web_ide/edit.rb
@@ -84,16 +84,13 @@ module QA
end
def commit_changes
- # Clicking :begin_commit_button the first time switches from the
+ # Clicking :begin_commit_button switches from the
# edit to the commit view
click_element :begin_commit_button
active_element? :commit_mode_tab
- # We need to click :begin_commit_button again
- click_element :begin_commit_button
-
- # After clicking :begin_commit_button the 2nd time there is an
- # animation that hides :begin_commit_button and shows :commit_button
+ # After clicking :begin_commit_button, there is an animation
+ # that hides :begin_commit_button and shows :commit_button
#
# Wait for the animation to complete before clicking :commit_button
# otherwise the click will quietly do nothing.
@@ -102,9 +99,6 @@ module QA
has_element?(:commit_button)
end
- # At this point we're ready to commit and the button should be
- # labelled "Stage & Commit"
- #
# Click :commit_button and keep retrying just in case part of the
# animation is still in process even when the buttons have the
# expected visibility.