diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-06-05 11:46:30 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-06-05 11:46:30 +0300 |
commit | 5cccf313c3f473cf7104ce846d6daed86cfeb392 (patch) | |
tree | 9701299c3333e3cda044b9ba65e888865e65b98c /qa/spec/page | |
parent | 765917dc088bee52a3f95d76fc7f32d408a2af20 (diff) |
Fix Web IDE add template test
Wait for the new file modal to stop animating before clicking it
We now need to click the commit button 3 times:
1. To enter commit mode
2. To being staging changes
3. To submit the commit
Diffstat (limited to 'qa/spec/page')
-rw-r--r-- | qa/spec/page/logging_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb index 99e96b81a51..092c6a17c9c 100644 --- a/qa/spec/page/logging_spec.rb +++ b/qa/spec/page/logging_spec.rb @@ -64,11 +64,21 @@ describe QA::Support::Page::Logging do it 'logs find_element with text' do expect { subject.find_element(:element, text: 'foo') } - .to output(/finding :element with text "foo"/).to_stdout_from_any_process + .to output(/finding :element with args {:text=>"foo"}/).to_stdout_from_any_process expect { subject.find_element(:element, text: 'foo') } .to output(/found :element/).to_stdout_from_any_process end + it 'logs find_element with wait' do + expect { subject.find_element(:element, wait: 0) } + .to output(/finding :element with args {:wait=>0}/).to_stdout_from_any_process + end + + it 'logs find_element with class' do + expect { subject.find_element(:element, class: 'active') } + .to output(/finding :element with args {:class=>\"active\"}/).to_stdout_from_any_process + end + it 'logs click_element' do expect { subject.click_element(:element) } .to output(/clicking :element/).to_stdout_from_any_process |