diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-01-07 13:57:05 -0500 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-01-07 15:33:55 -0500 |
commit | 8299df759325f65d0a8cdea77bbc14fb7a082eaf (patch) | |
tree | 8a2da392e6995265a8d1ded55098f5a371586c8a /qa/spec | |
parent | 0c1d6be13cb52afb32d23d625a6400e28f0a991e (diff) | |
download | gitlab-ce-8299df759325f65d0a8cdea77bbc14fb7a082eaf.tar.gz |
Wait for Web IDE commit animation
Wait for the "Commit..." button to disappear and the "Stage & Commit"
button to appear before clicking the latter button. The animation that
is shown while changing the buttons must complete before clicking
"Stage & Commit" will have any effect _even if_ the button is visible
before the animation is complete.
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/page/logging_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb index f108a5ca318..2eb826becea 100644 --- a/qa/spec/page/logging_spec.rb +++ b/qa/spec/page/logging_spec.rb @@ -74,6 +74,20 @@ describe QA::Support::Page::Logging do .to output(/has_element\? :element returned true/).to_stdout_from_any_process end + it 'logs has_no_element?' do + allow(page).to receive(:has_no_css?).and_return(true) + + expect { subject.has_no_element?(:element) } + .to output(/has_no_element\? :element returned true/).to_stdout_from_any_process + end + + it 'logs has_text?' do + allow(page).to receive(:has_text?).and_return(true) + + expect { subject.has_text? 'foo' } + .to output(/has_text\?\('foo'\) returned true/).to_stdout_from_any_process + end + it 'logs has_no_text?' do allow(page).to receive(:has_no_text?).with('foo').and_return(true) |