From c3425870f1bb6b0e8109d9808392f55ff6122fab Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Fri, 27 Jan 2017 14:07:06 -0700 Subject: [PATCH] Wait for the terminal.clear to go through before continuing Prevents some flakiness in tests --- spec/strategies/default_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/strategies/default_spec.rb b/spec/strategies/default_spec.rb index 3987c7e..e4bdb2f 100644 --- a/spec/strategies/default_spec.rb +++ b/spec/strategies/default_spec.rb @@ -5,6 +5,8 @@ describe 'default strategy' do session.run_command('source zsh-autosuggestions.zsh') session.run_command('fc -p') session.clear + + wait_for { session.content }.to eq('') end after do