Skip to content

Commit 2ee56e1

Browse files
committed
Fix: flaky test, wait for server-side call to complete.
1 parent 7466a76 commit 2ee56e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/integration/teams_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
it 'includes optional parameter' do
3131
expect(SlackRubyBotServer::Service.instance).to receive(:create!).with(instance_of(Team), { state: 'property' })
3232
visit '/?v1&code=code&state=property'
33+
expect(page.find('#messages')).to have_content 'Team successfully registered!'
3334
end
3435
end
3536
context 'homepage' do
@@ -60,6 +61,7 @@
6061
it 'includes optional parameter' do
6162
expect(SlackRubyBotServer::Service.instance).to receive(:create!).with(instance_of(Team), { state: 'property' })
6263
visit '/?v2&code=code&state=property'
64+
expect(page.find('#messages')).to have_content 'Team successfully registered!'
6365
end
6466
end
6567
context 'homepage' do

0 commit comments

Comments
 (0)