diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-16 12:08:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-16 12:08:32 +0000 |
commit | c158fa8d69c704663d289341a014c44c062cda88 (patch) | |
tree | d0cac82a9ac9e9ad28bb0030266eb8d5dc91fbbc /qa/qa/page/project/web_ide/edit.rb | |
parent | b806264d29b8d52ccb78a41dcc3d67f2b040700c (diff) | |
download | gitlab-ce-c158fa8d69c704663d289341a014c44c062cda88.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/page/project/web_ide/edit.rb')
-rw-r--r-- | qa/qa/page/project/web_ide/edit.rb | 12 |
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. |