From ef882b829306e7f04f5d4d8b874cca8bb7b62561 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 20 Mar 2019 21:44:37 +1100 Subject: [PATCH] Wait for entered tag before submitting The changed spec was failing from time to time. This change seems to make it stable. It may be worth moving tag entering into a helper that verifies that the tag was entered (waits for it). --- spec/features/admin/shipping_methods_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/shipping_methods_spec.rb b/spec/features/admin/shipping_methods_spec.rb index e81d904b20..7e22886ffb 100644 --- a/spec/features/admin/shipping_methods_spec.rb +++ b/spec/features/admin/shipping_methods_spec.rb @@ -104,7 +104,7 @@ feature 'shipping methods' do check "shipping_method_shipping_categories_" find(:css, "tags-input .tags input").set "local\n" within(".tags .tag-list") do - expect(page).to have_css '.tag-item' + expect(page).to have_css '.tag-item', text: "local" end click_button I18n.t("actions.create")