From 92bdf5033f11b6adad344df117abf6691db7f70a Mon Sep 17 00:00:00 2001 From: Damian Legawiec Date: Fri, 3 Dec 2021 22:39:25 +0100 Subject: [PATCH] Fixed flaky spec --- spec/features/admin/configuration/tax_rates_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/admin/configuration/tax_rates_spec.rb b/spec/features/admin/configuration/tax_rates_spec.rb index e6039f5806..5ae970ac3d 100644 --- a/spec/features/admin/configuration/tax_rates_spec.rb +++ b/spec/features/admin/configuration/tax_rates_spec.rb @@ -13,8 +13,9 @@ within find('#contentHeader') do click_link 'New Tax Rate' end + fill_in 'Name', with: 'My Tax' fill_in 'Rate', with: '0.05' click_button 'Create' - expect(page).to have_content('Tax Rate has been successfully created!') + expect(page).to have_content('Tax Rate "My Tax" has been successfully created!') end end